summaryrefslogtreecommitdiff
path: root/src/cpu/core.h
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-11-29 17:38:56 +1100
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-11-29 17:38:56 +1100
commit44a1ea6542c812b173fb9685837c0b2fdc6a7c61 (patch)
tree5ca86b97f79c38a07d4c532be6edcc12a887cbc1 /src/cpu/core.h
parent8d3aaacf14997bbac177ae37ccab4618264cf29c (diff)
bug fix apple.c:9 + inconsequential refactoring
Diffstat (limited to 'src/cpu/core.h')
-rw-r--r--src/cpu/core.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/cpu/core.h b/src/cpu/core.h
index fb6bdf6..850f04b 100644
--- a/src/cpu/core.h
+++ b/src/cpu/core.h
@@ -1,5 +1,4 @@
-#ifndef CPU_CORE_H
-#define CPU_CORE_H
+#pragma once
typedef
unsigned char
@@ -51,15 +50,12 @@ AddData;
-// getMemory and setMemory are declared here, but defined in apple.c
+// GetMemory and SetMemory are declared here, but defined in apple.c
// This is because memory access of particular memory locations is influenced by the Apple I's specific setup, not by the CPU alone.
+byte GetMemory(address x);
+void SetMemory(address x, byte y);
-byte getMemory(address x);
-
-void setMemory(address x, byte y);
extern void *current_instruction;
extern AddData idata;
-extern void (*func)(Addressing, address);
-
-#endif
+extern void (*func)(Addressing, address); \ No newline at end of file