mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-10-05 04:01:54 +02:00
Update to release v000r10.
byuu says: Changelog: - fixed LYC interrupt at LY=0 (fixes Makai Toushi SaGa) - fixed MBC3 ROM bank mapping (fixes Harvest Moon GBC) - added Super Game Boy MLT_REQ support to JOYP, needed for ICD2-R emulation - temporarily changed System::run() to execute only four cycles before exiting for bsnes, will make two versions later - uses actual boot ROMs, has DMG+SGB1 for now. Need SGB2, don't care about CGB. Defaults to SGB1, no way to select just yet. DMG 4-second wait is annoying. Does not force games to act like SGB on bgameboy itself, because that has no ICD2 and fails the required MLT_REQ check
This commit is contained in:
@@ -30,19 +30,18 @@ void LCD::add_clocks(unsigned clocks) {
|
||||
|
||||
void LCD::scanline() {
|
||||
status.lx -= 456;
|
||||
status.ly++;
|
||||
if(++status.ly == 154) frame();
|
||||
|
||||
if(status.interrupt_lyc == true) {
|
||||
if(status.ly == status.lyc) cpu.interrupt_raise(CPU::Interrupt::Stat);
|
||||
}
|
||||
|
||||
if(status.ly < 144) render();
|
||||
|
||||
if(status.ly == 144) {
|
||||
cpu.interrupt_raise(CPU::Interrupt::Vblank);
|
||||
if(status.interrupt_vblank) cpu.interrupt_raise(CPU::Interrupt::Stat);
|
||||
}
|
||||
if(status.ly == 154) frame();
|
||||
|
||||
if(status.ly < 144) render();
|
||||
}
|
||||
|
||||
void LCD::frame() {
|
||||
|
Reference in New Issue
Block a user