summaryrefslogtreecommitdiff
path: root/src/apple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apple.c')
-rw-r--r--src/apple.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/apple.c b/src/apple.c
index 9886d2c..3e3b928 100644
--- a/src/apple.c
+++ b/src/apple.c
@@ -1,5 +1,13 @@
#include"apple.h"
+extern byte acc;
+extern byte X;
+extern byte Y;
+extern byte P;
+extern byte S;
+extern address PC;
+extern byte* Memory;
+extern byte* ROM;
void AppleOn(){
Memory = calloc(MEMORY_SIZE, sizeof(byte));
@@ -13,7 +21,6 @@ void AppleReset(){
Memory = calloc(MEMORY_SIZE, sizeof(byte));
}
-
byte getMemory(address x){
return Memory[x];
}