Blame | Last modification | View Log | Download | RSS feed
ifndef bcdicincbcdicinc equ 1save ; no listing over this filelisting off; this translates the ASCII characters 0...127; to their BCDIC (codepage 359) representation, as far as possible.; codepage359 is the closest I could find that matches the (lower shift); character set listend in the IBM 5100 Comnunications Reference Manual.; It is probably NOT the character set used internally by the 5100, which; is said to be some variant of EBCDIC.; 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 cp359'; in your code!codepage cp359; unused codes: 12,13,28,30,31,42,47,58,60,63; where to map 'Start of Transmission' (11, same as '#', maybe 13 instead) ?__bcdic_none equ 64 ; value not representable in 6 bitscharsetcharset 0, __bcdic_none ; NULcharset 1, __bcdic_none ; SOHcharset 2, __bcdic_none ; STXcharset 3, __bcdic_none ; ETXcharset 4, 15 ; EOTcharset 5, __bcdic_none ; ENQcharset 6, __bcdic_none ; ACKcharset 7, __bcdic_none ; BELcharset 8, 46 ; BScharset 9, 61 ; HTcharset 10, 29 ; LFcharset 11, __bcdic_none; VTcharset 12, __bcdic_none; FFcharset 13, 45 ; CR->NL?charset 14, 14 ; SO->USH?charset 15, 62 ; SI->LSH?charset 16, __bcdic_none; DLEcharset 17, __bcdic_none; DC1charset 18, __bcdic_none; DC2charset 19, __bcdic_none; DC3charset 20, __bcdic_none; DC4charset 21, __bcdic_none; NAKcharset 22, __bcdic_none; SYNcharset 23, __bcdic_none; ETBcharset 24, 44 ; CAN->RST?charset 25, __bcdic_none; EMcharset 26, __bcdic_none; SUBcharset 27, __bcdic_none; ESCcharset 28, __bcdic_none; FScharset 29, __bcdic_none; GScharset 30, __bcdic_none; RScharset 31, __bcdic_none; UScharset ' ', 0charset '!', __bcdic_nonecharset '"', __bcdic_nonecharset '#', 11charset '$', 43charset '%', __bcdic_nonecharset '&', 48charset '\'', __bcdic_nonecharset '(', __bcdic_nonecharset ')', __bcdic_nonecharset '*', __bcdic_nonecharset '+', __bcdic_nonecharset ',', 27charset '-', 32charset '.', 59charset '/', 17charset '0', 10charset '1', '9', 1charset ':', __bcdic_nonecharset ';', __bcdic_nonecharset '<', __bcdic_nonecharset '=', __bcdic_nonecharset '>', __bcdic_nonecharset '?', __bcdic_nonecharset '@', 16charset 'A', 'I', 49charset 'J', 'R', 33charset 'S', 'Z', 18charset '[', __bcdic_nonecharset '\\', __bcdic_nonecharset ']', __bcdic_nonecharset '^', __bcdic_nonecharset '_', __bcdic_nonecharset '`', __bcdic_nonecharset 'a', 'i', __bcdic_nonecharset 'j', 'r', __bcdic_nonecharset 's', 'z', __bcdic_nonecharset '{', __bcdic_nonecharset '|', __bcdic_nonecharset '}', __bcdic_nonecharset '~', __bcdic_nonecharset 127, __bcdic_none; DELrestore ; restore previous listing state and code pageendif ; bcdicinc