Blame | Last modification | View Log | Download | RSS feed
ifndef cp5110inccp5110inc equ 1save ; no listing over this filelisting off; this translates printable ASCII characters; (0x20...0x7e) to the IBM 5110's variant of; EBCDIC, as far as possible...; NOTE: The save/restore mechanism will assure that after inclusion; of this file, you still use the same character mapping as you; did before. To activate this mapping, place a 'codepage cp5110'; in your code!codepage cp5110charsetcharset 0,31, ; 0x00..0x1f -> nothingcharset ' ',64 ; 0x20 -> 0x40charset '!',90 ; 0x21 -> 0x5acharset '"',127 ; 0x22 -> 0x7fcharset '#',123 ; 0x23 -> 0x7bcharset '$',91 ; 0x24 -> 0x5bcharset '%',108 ; 0x25 -> 0x6ccharset '&',80 ; 0x26 -> 0x50charset '\'',185 ; 0x27 -> 0xb9charset '(',77 ; 0x28 -> 0x4dcharset ')',93 ; 0x29 -> 0x5dcharset '*',92 ; 0x2a -> 0x5ccharset '+',78 ; 0x2b -> 0x4echarset ',',107 ; 0x2c -> 0x6bcharset '-',96 ; 0x2d -> 0x60charset '.',75 ; 0x2e -> 0x4bcharset '/',97 ; 0x2f -> 0x61charset '0','9',240 ; 0x30..0x39 -> 0xf0..0xf9charset ':',122 ; 0x3a -> 0x7acharset ';',94 ; 0x3b -> 0x5echarset '<',76 ; 0x3c -> 0x4ccharset '=',126 ; 0x3d -> 0x7echarset '>','?',110 ; 0x3e..0x3f -> 0x6e..0x6fcharset '@',124 ; 0x40 -> 0x7ccharset 'A','I',193 ; 0x41..0x49 -> 0xc1..0xc9charset 'J','R',209 ; 0x4a..0x52 -> 0xd1..0xd9charset 'S','Z',226 ; 0x53..0x5a -> 0xe2..0xe9charset '[',173 ; 0x5b -> 0xadcharset '\\',183 ; 0x5c -> 0xb7charset ']',189 ; 0x5d -> 0xbdcharset '^',113 ; 0x5e -> 0x71 (centered up arrow)charset '_',109 ; 0x5f -> 0x6dcharset '`',121 ; 0x60 -> 0x79charset 'a','i',129 ; 0x61..0x69 -> 0x81..0x89charset 'j','r',145 ; 0x6a..0x72 -> 0x91..0x99charset 's','z',162 ; 0x73..0x7a -> 0xa2..0xa9charset '{',192 ; 0x7b -> 0xc0 (according to BASIC character table)charset '|',106 ; 0x7c -> 0x6a (191 is also possible)charset '}',208 ; 0x7d -> 0xd0 (according to BASIC character table)charset '~',128 ; 0x7e -> 0x80charset 127,255, ; 0x7f..0xff -> nothingrestore ; restore previous listing state and code pageendif ; cp5110inc