fix initial endtime value

git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@82 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
This commit is contained in:
sinamas 2007-10-06 15:22:53 +00:00
parent ff4caf50e6
commit 87164d66fe

View File

@ -119,7 +119,7 @@ void Memory::init() {
next_timatime = uint32_t(-1);
tmatime = uint32_t(-1);
next_unhalttime = uint32_t(-1);
next_endtime = 0;
next_endtime = 0x102A0;
next_dmatime = uint32_t(-1);
next_hdmaReschedule = uint32_t(-1);
next_blittime = 0x102A0 + 144 * 456 - 1;
@ -1568,7 +1568,8 @@ bool Memory::loadROM() {
cgb_wramdata = new uint8_t[0x8000];
std::memcpy(cgb_wramdata, memory + 0xC000, 0x2000);
std::memcpy(cgb_wramdata + 0x2000, cgb_wramdata, 0x6000);
std::memcpy(cgb_wramdata + 0x2000, cgb_wramdata, 0x2000);
std::memcpy(cgb_wramdata + 0x4000, cgb_wramdata, 0x4000);
mem[0xC] = &cgb_wramdata[0];
mem[0xD] = &cgb_wramdata[0x1000];