summaryrefslogtreecommitdiff
path: root/src/apple.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-12-08 06:52:14 +1100
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-12-08 06:52:14 +1100
commitd28ad56810b43cb3ea5d11e5e32042f69ee04562 (patch)
tree0d0fd8976b253bf6aafed6e1449a1d4e69f658ab /src/apple.c
parent5012497d6e59d787195d177d02faa55242bf7e40 (diff)
major refactor of cpu code
Diffstat (limited to 'src/apple.c')
-rw-r--r--src/apple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apple.c b/src/apple.c
index 8d3f359..6ff8a61 100644
--- a/src/apple.c
+++ b/src/apple.c
@@ -45,7 +45,7 @@ void AppleOn() {
void AppleReset(){
acc = 0; X = 0; Y = 0; P = 0; S = 0;
- idata.cycles = 0; idata.length = 0; idata.address = 0; idata.value = 0;
+ state.cycles = 0; state.length = 0; state.address = 0; state.value = 0;
PC = 0xFF00;
free(Memory);
Memory = calloc(MEMORY_SIZE, sizeof(byte));