static void gtia_reset(running_machine &machine) { int i; address_space &space = machine.device("maincpu")->memory().space(AS_PROGRAM); /* reset the GTIA read/write/helper registers */ for (i = 0; i < 32; i++) atari_gtia_w(space,i,0); memset(>ia.r, 0, sizeof(gtia.r)); if (is_ntsc(machine)) gtia.r.pal = 0xff; else gtia.r.pal = 0xf1; gtia.r.gtia15 = 0xff; gtia.r.gtia16 = 0xff; gtia.r.gtia17 = 0xff; gtia.r.gtia18 = 0xff; gtia.r.gtia19 = 0xff; gtia.r.gtia1a = 0xff; gtia.r.gtia1b = 0xff; gtia.r.gtia1c = 0xff; gtia.r.gtia1d = 0xff; gtia.r.gtia1e = 0xff; gtia.r.cons = 0x07; /* console keys */ SETCOL_B(ILL,0x3e); /* bright red */ SETCOL_B(EOR,0xff); /* yellow */ }
static void gtia_reset(running_machine *machine) { int i; /* reset the GTIA read/write/helper registers */ for (i = 0; i < 32; i++) atari_gtia_w(machine,i,0); memset(>ia.r, 0, sizeof(gtia.r)); if (is_ntsc(machine)) gtia.r.pal = 0xff; else gtia.r.pal = 0xf1; gtia.r.gtia15 = 0xff; gtia.r.gtia16 = 0xff; gtia.r.gtia17 = 0xff; gtia.r.gtia18 = 0xff; gtia.r.gtia19 = 0xff; gtia.r.gtia1a = 0xff; gtia.r.gtia1b = 0xff; gtia.r.gtia1c = 0xff; gtia.r.gtia1d = 0xff; gtia.r.gtia1e = 0xff; gtia.r.cons = 0x07; /* console keys */ SETCOL_B(ILL,0x3e); /* bright red */ SETCOL_B(EOR,0xff); /* yellow */ }
void gtia_reset(void) { int i; /* reset the GTIA read/write/helper registers */ for (i = 0; i < 32; i++) atari_gtia_w(i,0); memset(>ia.r, 0, sizeof(gtia.r)); if( Machine->drv->frames_per_second > 55 ) gtia.r.pal = 0xff; else gtia.r.pal = 0xf1; gtia.r.gtia15 = 0xff; gtia.r.gtia16 = 0xff; gtia.r.gtia17 = 0xff; gtia.r.gtia18 = 0xff; gtia.r.gtia19 = 0xff; gtia.r.gtia1a = 0xff; gtia.r.gtia1b = 0xff; gtia.r.gtia1c = 0xff; gtia.r.gtia1d = 0xff; gtia.r.gtia1e = 0xff; gtia.r.cons = 0x07; /* console keys */ SETCOL_B(ILL,0x3e); /* bright red */ SETCOL_B(EOR,0xff); /* yellow */ }