GB: Reset with initial state of DIV register
Vicki Pfau vi@endrift.com
Thu, 22 Jun 2017 01:29:19 -0700
2 files changed,
3 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.c
→
src/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; }