/* Initialize the result */
result->addr = result->data = result->comp = 0;
- if(!(PicoAHW & PAHW_SMS))
+ if(!(PicoIn.AHW & PAHW_SMS))
{
//If Genesis
PicoPatches[i].data_old = *(unsigned short *)(Pico.rom + addr);
else
{
- if(!(PicoAHW & PAHW_SMS))
+ if(!(PicoIn.AHW & PAHW_SMS))
PicoPatches[i].data_old = (unsigned short) m68k_read16(addr);
else
;// wrong: PicoPatches[i].data_old = (unsigned char) PicoRead8_z80(addr);
{
if (PicoPatches[i].active)
{
- if (!(PicoAHW & PAHW_SMS))
+ if (!(PicoIn.AHW & PAHW_SMS))
*(unsigned short *)(Pico.rom + addr) = PicoPatches[i].data;
else if (!PicoPatches[i].comp || PicoPatches[i].comp == *(char *)(Pico.rom + addr))
*(char *)(Pico.rom + addr) = (char) PicoPatches[i].data;
if (PicoPatches[u].addr == addr) break;
if (u == i)
{
- if (!(PicoAHW & PAHW_SMS))
+ if (!(PicoIn.AHW & PAHW_SMS))
*(unsigned short *)(Pico.rom + addr) = PicoPatches[i].data_old;
else
*(char *)(Pico.rom + addr) = (char) PicoPatches[i].data_old;
{
if (PicoPatches[i].active)
{
- if (!(PicoAHW & PAHW_SMS))
+ if (!(PicoIn.AHW & PAHW_SMS))
m68k_write16(addr,PicoPatches[i].data);
else
;// wrong: PicoWrite8_z80(addr,PicoPatches[i].data);
if (PicoPatches[u].addr == addr) break;
if (u == i)
{
- if (!(PicoAHW & PAHW_SMS))
+ if (!(PicoIn.AHW & PAHW_SMS))
m68k_write16(PicoPatches[i].addr,PicoPatches[i].data_old);
else
;// wrong: PicoWrite8_z80(PicoPatches[i].addr,PicoPatches[i].data_old);