diff options
author | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-27 11:19:33 +1000 |
---|---|---|
committer | alekseiplusplus <alekseijeaves@protonmail.com> | 2023-04-27 11:19:33 +1000 |
commit | f86d973b2f5318b5e761e2f682c2aa57d61eb0d6 (patch) | |
tree | 1563496942ab0b09ed0ee1e2b549ce78a991ebef /headers/apple.h | |
parent | 83e8a4494741e6257b18267a58fe8ae342e3229f (diff) |
Major progress on interpreter
Diffstat (limited to 'headers/apple.h')
-rw-r--r-- | headers/apple.h | 7 |
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 |