Exemplo n.º 1
0
static void state(int mode,u8 *data)
{
	STATE_U8(portdata);
	STATE_U8(counter);
	STATE_U8(strobe);
	STATE_U8(buttons);
}
Exemplo n.º 2
0
static void state(int mode,u8 *data)
{
	STATE_ARRAY_U8(prg,2);
	STATE_ARRAY_U8(chr,8);
	STATE_U8(mirror);
	STATE_U8(latch);
	sync();
}
Exemplo n.º 3
0
void irem_h3001_state(int mode,u8 *data)
{
	STATE_ARRAY_U8(prg,3);
	STATE_ARRAY_U8(chr,8);
	STATE_U8(mirror);
	STATE_U8(irqcounter);
	STATE_U8(irqenabled);
	sync();
}
Exemplo n.º 4
0
static void state(int mode,u8 *data)
{
    if(mode >= 2)log_printf("mapper:  B_NINTENDO_EVENT:  mode = %d, dip = %X\n",mode,*data);
    CFG_U8(dip);
    STATE_U8(dip);
    STATE_U8(prglock);
    STATE_U8(irqenabled);
    STATE_U32(irqcounter);
    mmc1_state(mode,data);
}
Exemplo n.º 5
0
void mmc4_state(int mode,u8 *data)
{
	STATE_U8(PRGBank);
	STATE_U8(Mirroring);
	STATE_ARRAY_U8(LatchA,2);
	STATE_ARRAY_U8(LatchB,2);
	STATE_U8(LatchAState);
	STATE_U8(LatchBState);
	mmc4_sync();
}
Exemplo n.º 6
0
void fme7_state(int mode,u8 *data)
{
	STATE_U8(command);
	STATE_ARRAY_U8(prg,4);
	STATE_ARRAY_U8(chr,8);
	STATE_U8(mirror);
	STATE_U8(irqenabled);
	STATE_U32(irqcounter);
	fme7_sync();
}
Exemplo n.º 7
0
static void state(int mode,u8 *data)
{
    if(mode >= 2)log_message("dip = %X\n",*data);
    CFG_U8(dip);
    STATE_U8(dip);
    STATE_U8(prglock);
    STATE_U8(irqenabled);
    STATE_U32(irqcounter);
    mmc1_state(mode,data);
}
Exemplo n.º 8
0
static void state(int mode,u8 *data)
{
	STATE_ARRAY_U8(prg,2);
	STATE_ARRAY_U8(chr,8);
	STATE_U8(mirror);
	STATE_U8(irqlatch);
	STATE_U8(irqcounter);
	STATE_U8(irqcontrol);
	STATE_INT(irqprescaler);
	sync();
}
Exemplo n.º 9
0
void vrc6_state(int mode,u8 *data)
{
    STATE_ARRAY_U8(prg,2);
    STATE_ARRAY_U8(chr,8);
    STATE_U8(mirror);
    STATE_U8(irqenabled);
    STATE_U8(irqlatch);
    STATE_U32(irqprescaler);
    STATE_U32(irqcounter);
    sync();
}
Exemplo n.º 10
0
static void state(int mode,u8 *data)
{
	int i;

	for(i=0;i<4;i++)
		STATE_U8(prg[i]);
	for(i=0;i<8;i++)
		STATE_U8(chr[i]);
	STATE_U8(mirror);
	STATE_U8(latch);
	STATE_U8(irqenabled);
	STATE_INT(irqcycles);
	sync();
}
Exemplo n.º 11
0
void vrc2_state(int mode,u8 *data)
{
	STATE_ARRAY_U8(prg,2);
	STATE_ARRAY_U8(chr,8);
	STATE_U8(mirror);
	sync();
}
Exemplo n.º 12
0
void mapper90_state(int mode,u8 *data)
{
	STATE_ARRAY_U8(prg,4);
	STATE_ARRAY_U8(chrlo,8);
	STATE_ARRAY_U8(chrhi,8);
	STATE_ARRAY_U8(nt,4);
	STATE_U8(mirror);
	STATE_U8(bankmode);
	STATE_ARRAY_U8(mul,2);
	STATE_U8(onebyte);
	STATE_U8(chrcontrol);
	STATE_U8(irqenabled);
	STATE_U8(irqmode);
	STATE_U8(irqxor);
	STATE_U8(irqlo);
	STATE_U8(irqhi);
	syncprg();
	syncchr();
	syncnt();
}
Exemplo n.º 13
0
void genie_state(int mode,u8 *data)
{
	STATE_U8(reg);
	STATE_U16(code[0].addr);
	STATE_U8(code[0].compare);
	STATE_U8(code[0].data);
	STATE_U16(code[1].addr);
	STATE_U8(code[1].compare);
	STATE_U8(code[1].data);
	STATE_U16(code[2].addr);
	STATE_U8(code[2].compare);
	STATE_U8(code[2].data);
}
Exemplo n.º 14
0
static void state(int mode,u8 *data)
{
	STATE_U8(reg);
	sync();
}
Exemplo n.º 15
0
static void mapper45_state(int mode,u8 *data)
{
	STATE_U8(regindex);
	STATE_ARRAY_U8(reg,4);
	mmc3_state(mode,data);
}
Exemplo n.º 16
0
static void state(int mode,u8 *data)
{
	STATE_U8(reg);
	mmc3_state(mode,data);
}