all repos — mgba @ dd4e6b0ce14d5e7a49659ec633c0f632c231ade0

mGBA Game Boy Advance Emulator

Stub RegisterRamReset
Jeffrey Pfau jeffrey@endrift.com
Sat, 27 Apr 2013 22:54:41 -0700
commit

dd4e6b0ce14d5e7a49659ec633c0f632c231ade0

parent

ca959c640a5fe148bd43befc7ce7e6c41348b374

1 files changed, 9 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-bios.csrc/gba/gba-bios.c

@@ -9,6 +9,12 @@ #include <stdlib.h>

static void _unLz77(struct GBAMemory* memory, uint32_t source, uint8_t* dest); +static void _RegisterRamReset(struct GBA* gba) { + uint32_t registers = gba->cpu.gprs[0]; + (void)(registers); + GBALog(GBA_LOG_STUB, "RegisterRamReset unimplemented"); +} + static void _CpuSet(struct GBA* gba) { uint32_t source = gba->cpu.gprs[0]; uint32_t dest = gba->cpu.gprs[1];

@@ -80,6 +86,9 @@

void GBASwi16(struct ARMBoard* board, int immediate) { struct GBA* gba = ((struct GBABoard*) board)->p; switch (immediate) { + case 0x1: + _RegisterRamReset(gba); + break; case 0x2: GBAHalt(gba); break;