2012-04-26 10:51:13 +00:00
|
|
|
#ifdef PPU_CPP
|
2011-01-07 11:11:56 +00:00
|
|
|
|
2012-04-26 10:51:13 +00:00
|
|
|
void PPU::serialize(serializer &s) {
|
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(screen);
|
|
|
|
s.array(line);
|
|
|
|
s.array(origin);
|
|
|
|
|
|
|
|
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);
|
2011-09-05 03:56:22 +00:00
|
|
|
s.integer(status.wyc);
|
2011-01-07 11:11:56 +00:00
|
|
|
|
|
|
|
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);
|
2011-01-07 11:11:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|