27 #define DBG_PROGNAME "OPENCBM.DLL"
66 switch (Character & 0xff) {
77 switch (Character & 0xe0) {
80 return (Character ^ 0x20);
83 return (Character ^ 0x80);
88 return ((isprint(Character) ? Character :
'.'));
107 if ((Character >= 0x5b) && (Character <= 0x7e))
109 return Character ^ 0x20;
111 else if ((Character >=
'A') && (Character <=
'Z'))
113 return Character | 0x80;
139 for (p = Str; *p; p++)
163 for (p = Str; *p; p++)
Define makros for debugging purposes.
char *CBMAPIDECL cbm_petscii2ascii(char *Str)
Convert an null-termined PETSCII string to ASCII.
char *CBMAPIDECL cbm_ascii2petscii(char *Str)
Convert an null-termined ASCII string to PETSCII.
char CBMAPIDECL cbm_petscii2ascii_c(char Character)
Convert a PETSCII character to ASCII.
DLL interface for accessing the driver.
char CBMAPIDECL cbm_ascii2petscii_c(char Character)
Convert an ASCII character to PETSCII.