Corrected on which side the char set capitalization should happen

git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@19 64f78de7-aa59-e511-a0e8-0002a5492df0
This commit is contained in:
Daniel Loffgren 2015-09-14 09:10:26 +00:00
parent 33c59e08f4
commit 19573995f9
1 changed files with 6 additions and 5 deletions

View File

@ -39,10 +39,6 @@ char asciiCharFromA1Char(uint8_t c) {
case 0xDF: return 0x7F; // Backspace
}
if (c >= 'a' && c <= 'z') {
return (char)c & ~0x20;
}
return (char)c;
}
@ -52,6 +48,11 @@ uint8_t a1CharFromAsciiChar(char c) {
case '\r': return 0x8D;
case 0x7F: return 0xDF; // Backspace
}
if (c >= 'a' && c <= 'z') {
return (char)c & ~0x20;
}
return (char)c;
}
@ -59,7 +60,7 @@ void videoWriteCharCallback(struct _v6502_memory *memory, uint16_t offset, uint8
if (value) {
char c = asciiCharFromA1Char(value);
if (c == '\n') {
fprintf(stdout, "\n\r");
fprintf(stdout, "\r");
}
if (c == 0x7f) {
int y, x;