all repos — mgba @ d5c5173889a1a2719ed6a885def944c4ada4aabe

mGBA Game Boy Advance Emulator

GB: Reset with initial state of DIV register
Vicki Pfau vi@endrift.com
Thu, 22 Jun 2017 01:29:19 -0700
commit

d5c5173889a1a2719ed6a885def944c4ada4aabe

parent

3a03d180d2f7c7081f42d2ada5582c17ad2032cd

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -139,6 +139,7 @@ - Debugger: Add mDebuggerRunFrame convenience function

- GBA Memory: Remove unused prefetch cruft - GB: Trust ROM header for number of SRAM banks (fixes mgba.io/i/726) - Core: Config values can now be hexadecimal + - GB: Reset with initial state of DIV register 0.5.2: (2016-12-31) Bugfixes:
M src/gb/gb.csrc/gb/gb.c

@@ -433,6 +433,7 @@ cpu->c = 0x13;

cpu->e = 0xD8; cpu->h = 1; cpu->l = 0x4D; + gb->timer.internalDiv = 0x2AF3; break; case GB_MODEL_AGB: cpu->b = 1;

@@ -444,6 +445,7 @@ cpu->c = 0;

cpu->e = 0x08; cpu->h = 0; cpu->l = 0x7C; + gb->timer.internalDiv = 0x7A8; break; }