diff --git a/cpu/fmem.h b/cpu/fmem.h index 00dc6d9..3ab96ee 100644 --- a/cpu/fmem.h +++ b/cpu/fmem.h @@ -9,7 +9,7 @@ extern "C" { extern void memorySetMemory(uint8_t *memory, uint32_t size); extern void memorySetGlobalLog(uint32_t globalLog); - +extern uint8_t *memoryPointer(uint32_t address); /* Memory access functions */ diff --git a/cpu/memory.c b/cpu/memory.c index 9ae3980..d24625b 100644 --- a/cpu/memory.c +++ b/cpu/memory.c @@ -59,6 +59,13 @@ void memorySetGlobalLog(uint32_t globalLog) MemoryGlobalLog = globalLog; } + +uint8_t *memoryPointer(uint32_t address) +{ + return Memory + address; +} + + UBY memoryReadByte(ULO address) {