Added PETSCII/screen codes conversion routines