Commodore 64 PETSCII code to screen code conversion

PETSCII code
(dec, hex)
Change
(dec, hex)
Screen code
(dec, hex)
0-31$00-$1F+128$80128-159$80-$9F
32-63$20-$3F0$0032-63$20-$3F
64-95$40-$5F-64$C00-31$00-$1F
96-127$60-$7F-32$E064-95$40-$5F
128-159$80-$9F+64$40192-223$C0-$DF
160-191$A0-$BF-64$C096-127$60-$7F
192-223$C0-$DF-128$8064-95$40-$5F
224-254$E0-$FE-128$8096-126$60-$7E
255$FF 94$5E

Notes:

  1. PETSCII code $FF is the BASIC token of the π (pi) symbol. It is converted internally to screen code $5E when printed onto the screen.