Search found 6 matches
- Sat Oct 13, 2012 10:42 am
- Forum: GBDev
- Topic: Strange behavior of the Gameboy timer
- Replies: 0
- Views: 3127
Strange behavior of the Gameboy timer
So, I'm writing a Gameboy emulator and I'm currently trying to implement an accurate timer. I'm running Blargg's intstr_timing test and is getting "failed #255" because the timer fails to initialize. I was checking out what happens with the debugger of bgb (which by the way passes that tes...
- Tue Sep 11, 2012 6:51 am
- Forum: GBDev
- Topic: Blarggs rom test - CPU:2 - Interrupts
- Replies: 2
- Views: 5620
Re: Blarggs rom test - CPU:2 - Interrupts
The discussion was continued on the IRC. The conclusions that were made there were the following: - As nitro2k01 stated in the his post above: The second test probably is just meant to test the behavior for when IME is cleared and the di instruction is just there to make sure the IME flag is cleared...
- Fri Sep 07, 2012 5:06 pm
- Forum: GBDev
- Topic: The unimplementable DAA instruction
- Replies: 3
- Views: 6706
Re: The unimplementable DAA instruction
Now it passes the DAA test, it was due to the crc-checks didn't work because of a faulty RRCA instruction. Thank you once again for the help! 
- Fri Sep 07, 2012 5:03 pm
- Forum: GBDev
- Topic: Blarggs rom test - CPU:2 - Interrupts
- Replies: 2
- Views: 5620
Blarggs rom test - CPU:2 - Interrupts
I'm writing a gameboy emulator and is currently debugging it by running Blargg's GB rom tests. In Blargg's GB rom tests for the CPU instructions, test number 2, the interrupts, this code is used to check EI: set_test 2,"EI" ei ld bc,0 push bc pop bc inc b wreg IF,$04 interrupt_addr: dec b ...
- Mon Jul 16, 2012 10:39 am
- Forum: GBDev
- Topic: The unimplementable DAA instruction
- Replies: 3
- Views: 6706
- Thu Jul 12, 2012 3:16 am
- Forum: GBDev
- Topic: The unimplementable DAA instruction
- Replies: 3
- Views: 6706
The unimplementable DAA instruction
Hi! I'm making a Gameboy emulator and I've been trying to get the DAA instruciton to pass Blargg's tests for quite some time now. I've tried to copy the behavior of how gambatte (which passes the tests) handles it. Gambattes implmentation: case 0x27: calcHF(HF1, HF2); { unsigned correction = (CF &am...