From ce832bca76df5f3a57b852e55445a24a52320dd2 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 10 Feb 2013 20:19:01 -0500 Subject: [PATCH] memoryPointer --- cpu/fmem.h | 2 +- cpu/memory.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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) {