summaryrefslogtreecommitdiff
path: root/src/video/signetics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/signetics.c')
-rw-r--r--src/video/signetics.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video/signetics.c b/src/video/signetics.c
index 09e9836..3dd279b 100644
--- a/src/video/signetics.c
+++ b/src/video/signetics.c
@@ -2,15 +2,19 @@
// Signetics refers to the various Signetics brand chips which the Apple I came with, including a character ROM, and a shift-register based video memory.
// Intended to be included during pre-processing into the .c of the used video library.
-const byte CharacterROM[0x40] = {
+const byte SigneticsROM[0x40] = {
'@' , 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' , 'N' , 'O' ,
'P' , 'Q' , 'R' , 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , 'Y' , 'Z' , '[' , '\\', ']' , '^' , '_' ,
' ' , '!' , '"' , '#' , '$' , '%' , '&' , '\'', '(' , ')' , '*' , '+' , ',' , '-' , '.' , '/' ,
'0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , ':' , ';' , '<' , '=' , '>' , '?'
};
+byte CharacterROM(byte x) {
+ return SigneticsROM[ x & 0b01111111 ];
+}
+
const byte* TerminalShiftRegister;
byte* TerminalShiftRegisterPosition;
-int TerminalShiftRegisterOffset; \ No newline at end of file
+int TerminalShiftRegisterOffset;