From 44a1ea6542c812b173fb9685837c0b2fdc6a7c61 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Wed, 29 Nov 2023 17:38:56 +1100 Subject: bug fix apple.c:9 + inconsequential refactoring --- src/cpu/core.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/cpu/core.h') 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 -- cgit v1.2.3