Move GBA load/stores internal to gba.c
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Apr 2013 04:08:06 -0700
M
src/gba.c
→
src/gba.c
@@ -10,6 +10,16 @@ #include <unistd.h>
static const char* GBA_CANNOT_MMAP = "Could not map memory"; +static int32_t GBALoad32(struct ARMMemory* memory, uint32_t address); +static int16_t GBALoad16(struct ARMMemory* memory, uint32_t address); +static uint16_t GBALoadU16(struct ARMMemory* memory, uint32_t address); +static int8_t GBALoad8(struct ARMMemory* memory, uint32_t address); +static uint8_t GBALoadU8(struct ARMMemory* memory, uint32_t address); + +static void GBAStore32(struct ARMMemory* memory, uint32_t address, int32_t value); +static void GBAStore16(struct ARMMemory* memory, uint32_t address, int16_t value); +static void GBAStore8(struct ARMMemory* memory, uint32_t address, int8_t value); + static void GBASetActiveRegion(struct ARMMemory* memory, uint32_t region); static void GBAHitStub(struct ARMBoard* board, uint32_t opcode);
M
src/gba.h
→
src/gba.h
@@ -112,14 +112,4 @@ void GBAAttachDebugger(struct GBA* gba, struct ARMDebugger* debugger);
void GBALoadROM(struct GBA* gba, int fd); -int32_t GBALoad32(struct ARMMemory* memory, uint32_t address); -int16_t GBALoad16(struct ARMMemory* memory, uint32_t address); -uint16_t GBALoadU16(struct ARMMemory* memory, uint32_t address); -int8_t GBALoad8(struct ARMMemory* memory, uint32_t address); -uint8_t GBALoadU8(struct ARMMemory* memory, uint32_t address); - -void GBAStore32(struct ARMMemory* memory, uint32_t address, int32_t value); -void GBAStore16(struct ARMMemory* memory, uint32_t address, int16_t value); -void GBAStore8(struct ARMMemory* memory, uint32_t address, int8_t value); - #endif