mirror of https://github.com/mgba-emu/mgba.git
Move GBA load/stores internal to gba.c
This commit is contained in:
parent
1d445958c9
commit
2cb00fe065
10
src/gba.c
10
src/gba.c
|
@ -10,6 +10,16 @@
|
|||
|
||||
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);
|
||||
|
||||
|
|
10
src/gba.h
10
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
|
||||
|
|
Loading…
Reference in New Issue