1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-13 15:27:04 +00:00

SIM_CARD: Update errors in translation table.

This commit is contained in:
Richard Cornwell 2017-09-16 00:48:59 -04:00
parent f71faa4b2d
commit 386ba2be85

View File

@ -93,8 +93,8 @@ static const uint16 ascii_to_hol_026[128] = {
/*Control*/
0xf000,0xf000,0xf000,0xf000,0xf000,0xf000,0xf000,0xf000,
/* sp ! " # $ % & ' */
/* none Y28 78 T28 Y38 T48 X 48 */
0x000, 0x482, 0x006, 0x282, 0x442, 0x222, 0x800, 0x022, /* 40 - 77 */
/* none Y28 78 T28 Y38 T48 XT 48 */
0x000, 0x600, 0x006, 0x282, 0x442, 0x222, 0xA00, 0x022, /* 40 - 77 */
/* ( ) * + , - . / */
/* T48 X48 Y48 X T38 T X38 T1 */
0x222, 0x822, 0x422, 0x800, 0x242, 0x400, 0x842, 0x300,
@ -124,7 +124,7 @@ static const uint16 ascii_to_hol_026[128] = {
0xC04, 0xC02, 0xC01, 0x680, 0x640, 0x620, 0x610, 0x608,
/* x y z { | } ~ del */
/* Y78 X78 78 79 */
0x604, 0x602, 0x601, 0x406, 0x806,0x0006,0x0005,0xf000
0x604, 0x602, 0x601, 0x206, 0x806,0x0006,0x0005,0xf000
};
/* Set for Burrough codes */
@ -232,7 +232,7 @@ const char sim_ascii_to_six[128] = {
/* 0 1 2 3 4 5 6 7 */
012, 001, 002, 003, 004, 005, 006, 007,
/* 8 9 : ; < = > ? */
010, 011, 015, 056, 076, 013, 016, 032,
010, 011, 015, 056, 076, 013, 016, 072,
/* @ A B C D E F G */
014, 061, 062, 063, 064, 065, 066, 067, /* 100 - 137 */
/* H I J K L M N O */
@ -401,6 +401,9 @@ uint8
sim_hol_to_bcd(uint16 hol) {
uint8 bcd;
if (hol == 0x82)
return 020;
/* Convert 10,11,12 rows */
switch (hol & 0xe00) {
case 0x000: