1
0
mirror of https://github.com/cclassic/hcs12ss59t synced 2024-11-22 10:25:05 +01:00

Translate a zero byte in text mode to a space

This commit is contained in:
Markus Koch 2018-01-13 09:49:06 +01:00
parent ac4d778679
commit 698ef7385f

View File

@ -22,6 +22,9 @@ char hcs12ss59t_get_char(char c)
c += 16; c += 16;
else if (c >= 'a' && c <= 'z') else if (c >= 'a' && c <= 'z')
c -= 80; c -= 80;
else if (c == 0) {
c = ' ' - 48;
}
else else
c = 79; c = 79;
return c; return c;