summaryrefslogtreecommitdiff
path: root/headers/apple.h
diff options
context:
space:
mode:
Diffstat (limited to 'headers/apple.h')
-rw-r--r--headers/apple.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/headers/apple.h b/headers/apple.h
index f5cac5c..cfcc879 100644
--- a/headers/apple.h
+++ b/headers/apple.h
@@ -1,6 +1,11 @@
#define MEMORY_SIZE 4096
void AppleOn(){
- //Memory = malloc(MEMORY_SIZE);
+ Memory = calloc(MEMORY_SIZE, sizeof(byte));
initInstructionTable();
+}
+
+void AppleReset(){ //Firt few Zp addresses have gibberish, need to fix
+ free(Memory);
+ Memory = calloc(MEMORY_SIZE, sizeof(byte));
} \ No newline at end of file