2015-11-21 07:36:48 +00:00
|
|
|
auto CPU::serialize(serializer& s) -> void {
|
2012-04-26 10:51:13 +00:00
|
|
|
LR35902::serialize(s);
|
2012-03-23 10:43:39 +00:00
|
|
|
Thread::serialize(s);
|
2011-10-18 10:05:29 +00:00
|
|
|
|
2011-01-07 11:11:56 +00:00
|
|
|
s.array(wram);
|
|
|
|
s.array(hram);
|
|
|
|
|
|
|
|
s.integer(status.clock);
|
|
|
|
|
|
|
|
s.integer(status.p15);
|
|
|
|
s.integer(status.p14);
|
|
|
|
s.integer(status.joyp);
|
2016-06-28 10:43:47 +00:00
|
|
|
s.integer(status.mltReq);
|
2011-01-07 11:11:56 +00:00
|
|
|
|
2016-06-28 10:43:47 +00:00
|
|
|
s.integer(status.serialData);
|
|
|
|
s.integer(status.serialBits);
|
Update to v074r11 release.
byuu says:
Changelog:
- debugger compiles on all three profiles
- libsnes compiles on all three platforms (no API changes to libsnes)
- memory.cpp : namespace memory removed (wram -> cpu, apuram -> smp,
vram, oam, cgram -> ppu)
- sa1.cpp : namespace memory removed (SA-1 specific functions merged
inline to SA1::bus_read,write)
- GameBoy: added serial link support with interrupts and proper 8192hz
timing, but obviously it acts as if no other GB is connected to it
- GameBoy: added STAT OAM interrupt, and better STAT d1,d0 mode values
- UI: since Qt is dead, I've renamed the config files back to bsnes.cfg
and bsnes-geometry.cfg
- SA1: IRAM was not syncing to CPU on SA-1 side
- PPU/Accuracy and PPU/Performance needed Sprite oam renamed to Sprite
sprite; so that I could add uint8 oam[544]
- makes more sense anyway, OAM = object attribute memory, obj or
sprite are better names for Sprite rendering class
- more cleanup
2011-01-24 09:03:17 +00:00
|
|
|
|
2016-06-28 10:43:47 +00:00
|
|
|
s.integer(status.serialTransfer);
|
|
|
|
s.integer(status.serialClock);
|
Update to v074r11 release.
byuu says:
Changelog:
- debugger compiles on all three profiles
- libsnes compiles on all three platforms (no API changes to libsnes)
- memory.cpp : namespace memory removed (wram -> cpu, apuram -> smp,
vram, oam, cgram -> ppu)
- sa1.cpp : namespace memory removed (SA-1 specific functions merged
inline to SA1::bus_read,write)
- GameBoy: added serial link support with interrupts and proper 8192hz
timing, but obviously it acts as if no other GB is connected to it
- GameBoy: added STAT OAM interrupt, and better STAT d1,d0 mode values
- UI: since Qt is dead, I've renamed the config files back to bsnes.cfg
and bsnes-geometry.cfg
- SA1: IRAM was not syncing to CPU on SA-1 side
- PPU/Accuracy and PPU/Performance needed Sprite oam renamed to Sprite
sprite; so that I could add uint8 oam[544]
- makes more sense anyway, OAM = object attribute memory, obj or
sprite are better names for Sprite rendering class
- more cleanup
2011-01-24 09:03:17 +00:00
|
|
|
|
2011-01-07 11:11:56 +00:00
|
|
|
s.integer(status.div);
|
|
|
|
s.integer(status.tima);
|
|
|
|
s.integer(status.tma);
|
2016-06-28 10:43:47 +00:00
|
|
|
s.integer(status.timerEnable);
|
|
|
|
s.integer(status.timerClock);
|
2011-01-07 11:11:56 +00:00
|
|
|
|
2016-06-28 10:43:47 +00:00
|
|
|
s.integer(status.interruptRequestJoypad);
|
|
|
|
s.integer(status.interruptRequestSerial);
|
|
|
|
s.integer(status.interruptRequestTimer);
|
|
|
|
s.integer(status.interruptRequestStat);
|
|
|
|
s.integer(status.interruptRequestVblank);
|
2011-01-07 11:11:56 +00:00
|
|
|
|
2016-06-28 10:43:47 +00:00
|
|
|
s.integer(status.speedDouble);
|
|
|
|
s.integer(status.speedSwitch);
|
2011-10-27 00:00:17 +00:00
|
|
|
|
2016-06-28 10:43:47 +00:00
|
|
|
s.integer(status.dmaSource);
|
|
|
|
s.integer(status.dmaTarget);
|
|
|
|
s.integer(status.dmaMode);
|
|
|
|
s.integer(status.dmaLength);
|
|
|
|
s.integer(status.dmaCompleted);
|
2011-10-27 00:00:17 +00:00
|
|
|
|
|
|
|
s.integer(status.ff6c);
|
|
|
|
|
2016-06-28 10:43:47 +00:00
|
|
|
s.integer(status.wramBank);
|
2011-10-27 00:00:17 +00:00
|
|
|
|
|
|
|
s.integer(status.ff72);
|
|
|
|
s.integer(status.ff73);
|
|
|
|
s.integer(status.ff74);
|
|
|
|
s.integer(status.ff75);
|
|
|
|
|
2016-06-28 10:43:47 +00:00
|
|
|
s.integer(status.interruptEnableJoypad);
|
|
|
|
s.integer(status.interruptEnableSerial);
|
|
|
|
s.integer(status.interruptEnableTimer);
|
|
|
|
s.integer(status.interruptEnableStat);
|
|
|
|
s.integer(status.interruptEnableVblank);
|
2011-01-07 11:11:56 +00:00
|
|
|
}
|