2015-11-21 07:36:48 +00:00
|
|
|
auto PPU::serialize(serializer& s) -> void {
|
2012-03-23 10:43:39 +00:00
|
|
|
Thread::serialize(s);
|
2011-10-18 10:05:29 +00:00
|
|
|
|
2011-10-27 00:00:17 +00:00
|
|
|
s.array(vram);
|
|
|
|
s.array(oam);
|
|
|
|
s.array(bgp);
|
|
|
|
s.array(obp[0]);
|
|
|
|
s.array(obp[1]);
|
|
|
|
s.array(bgpd);
|
|
|
|
s.array(obpd);
|
|
|
|
|
2011-01-07 11:11:56 +00:00
|
|
|
s.integer(status.lx);
|
|
|
|
|
|
|
|
s.integer(status.display_enable);
|
|
|
|
s.integer(status.window_tilemap_select);
|
|
|
|
s.integer(status.window_display_enable);
|
|
|
|
s.integer(status.bg_tiledata_select);
|
|
|
|
s.integer(status.bg_tilemap_select);
|
2011-10-28 09:51:43 +00:00
|
|
|
s.integer(status.ob_size);
|
|
|
|
s.integer(status.ob_enable);
|
2011-01-07 11:11:56 +00:00
|
|
|
s.integer(status.bg_enable);
|
|
|
|
|
|
|
|
s.integer(status.interrupt_lyc);
|
|
|
|
s.integer(status.interrupt_oam);
|
|
|
|
s.integer(status.interrupt_vblank);
|
|
|
|
s.integer(status.interrupt_hblank);
|
|
|
|
|
|
|
|
s.integer(status.scy);
|
|
|
|
s.integer(status.scx);
|
2011-10-27 00:00:17 +00:00
|
|
|
|
2011-01-07 11:11:56 +00:00
|
|
|
s.integer(status.ly);
|
|
|
|
s.integer(status.lyc);
|
|
|
|
|
|
|
|
s.integer(status.wy);
|
|
|
|
s.integer(status.wx);
|
|
|
|
|
2011-10-27 00:00:17 +00:00
|
|
|
s.integer(status.vram_bank);
|
|
|
|
|
|
|
|
s.integer(status.bgpi_increment);
|
|
|
|
s.integer(status.bgpi);
|
|
|
|
|
|
|
|
s.integer(status.obpi_increment);
|
|
|
|
s.integer(status.obpi);
|
2013-12-11 11:19:17 +00:00
|
|
|
|
|
|
|
s.array(screen);
|
|
|
|
|
|
|
|
s.integer(bg.color);
|
|
|
|
s.integer(bg.palette);
|
|
|
|
s.integer(bg.priority);
|
|
|
|
|
|
|
|
s.integer(ob.color);
|
|
|
|
s.integer(ob.palette);
|
|
|
|
s.integer(ob.priority);
|
|
|
|
|
|
|
|
for(auto& o : sprite) {
|
|
|
|
s.integer(o.x);
|
|
|
|
s.integer(o.y);
|
|
|
|
s.integer(o.tile);
|
|
|
|
s.integer(o.attr);
|
|
|
|
}
|
|
|
|
s.integer(sprites);
|
|
|
|
|
|
|
|
s.integer(background.attr);
|
|
|
|
s.integer(background.data);
|
|
|
|
|
|
|
|
s.integer(window.attr);
|
|
|
|
s.integer(window.data);
|
2011-01-07 11:11:56 +00:00
|
|
|
}
|