summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-05-09 15:08:26 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-05-09 15:08:26 +1000
commitb158eaeb489bce502198e844593b38a2f5f5b9ee (patch)
treefed2253798e5783bbd44451f813e74e0c62dd5f5
parent881a1cb05e80ab465c5372be42f554867f19916b (diff)
minor things
-rw-r--r--src/include.h2
-rw-r--r--src/signetics.h24
2 files changed, 25 insertions, 1 deletions
diff --git a/src/include.h b/src/include.h
index f266ca6..3cd1502 100644
--- a/src/include.h
+++ b/src/include.h
@@ -6,6 +6,6 @@
#include"apple.h"
#ifdef GRAPHICAL
-#include"SDL2/SDL.h"
+#include<SDL2/SDL.h>
#include"signetics.h"
#endif \ No newline at end of file
diff --git a/src/signetics.h b/src/signetics.h
index 228aa85..28498e0 100644
--- a/src/signetics.h
+++ b/src/signetics.h
@@ -1,2 +1,26 @@
// signetics.h
// The Apple I came with its own terminal on-board, with a Signetics 2513 character ROM.
+
+
+/*byte CharacterROM[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', ':', ';', '<', '=', '>', '?'
+};*/
+//In case it comes in handy, which it probably wont.
+
+byte ToAppleASCII(char x){
+ if (x < 32 || x > 95)
+ return -1;
+ if (x >= 64)
+ x -= 64;
+ return x;
+}
+
+byte ToRegularASCII(char x){
+ if (x < 32)
+ x += 64;
+ return x;
+}
+