all repos — mgba @ 3ca0a97ca1c04b03beafea9b60652ccac87258e5

mGBA Game Boy Advance Emulator

Prepopulate RCNT
Jeffrey Pfau jeffrey@endrift.com
Sat, 12 Oct 2013 16:37:10 -0700
commit

3ca0a97ca1c04b03beafea9b60652ccac87258e5

parent

d8778cf516ba8095f346de7a4977f96a654df432

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

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

@@ -4,6 +4,7 @@ #include "gba-video.h"

void GBAIOInit(struct GBA* gba) { gba->memory.io[REG_DISPCNT >> 1] = 0x0080; + gba->memory.io[REG_RCNT >> 1] = 0x8000; gba->memory.io[REG_KEYINPUT >> 1] = 0x3FF; }