mirror of
https://github.com/RyuKojiro/apple1.git
synced 2024-12-28 11:30:11 +00:00
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:
parent
33c59e08f4
commit
19573995f9
11
apple1/pia.c
11
apple1/pia.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user