summaryrefslogtreecommitdiff
path: root/src/signetics.h
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-08-03 11:50:22 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-08-03 11:50:22 +1000
commitb8599585fad704b2ec3bdde69dca4dd9c2a6f8fd (patch)
tree275eda06de77d9e6d8d831a31179ad8cec33ad4d /src/signetics.h
parent9a6188f821b11b69fff3d3a303dbfcce2e52e6f4 (diff)
New direction for video
Diffstat (limited to 'src/signetics.h')
-rw-r--r--src/signetics.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/signetics.h b/src/signetics.h
index 8442f11..af25a98 100644
--- a/src/signetics.h
+++ b/src/signetics.h
@@ -1,22 +1,23 @@
// signetics.h
// The Apple I came with its own terminal on-board, with a Signetics 2513 character ROM.
-
+#include"cpu/core.h"
+#include"stdlib.h"
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', ':', ';', '<', '=', '>', '?'
+ '@' , '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* TerminalShiftRegister;
+
int TerminalShiftRegisterOffset = 0;
-void InitVideo(){
- TerminalShiftRegister = malloc(1024); //maybe 960
+void InitSignetics(){
+ TerminalShiftRegister = (byte*)malloc(1024); //maybe 960
}
-
byte ToAppleASCII(char x){
if (x < 32 || x > 95)
return -1;