Home
last modified time | relevance | path

Searched refs:coin_count (Results 1 – 8 of 8) sorted by relevance

/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/machine/
H A Dnamcond1_machine.c20 static UINT8 coin_count[4]; variable
46 coin_count[0] = coin_count[1] = in MACHINE_INIT()
47 coin_count[2] = coin_count[3] = 0; in MACHINE_INIT()
91 data = (coin_count[0]<<8) | coin_count[1]; in READ16_HANDLER()
95 data = (coin_count[2]<<8) | coin_count[3]; in READ16_HANDLER()
119 if( ( poll_coins & 0x8 ) & ~( coin_state & 0x8 ) ) coin_count[0]++; in READ16_HANDLER()
120 if( ( poll_coins & 0x4 ) & ~( coin_state & 0x4 ) ) coin_count[1]++; in READ16_HANDLER()
121 if( ( poll_coins & 0x2 ) & ~( coin_state & 0x2 ) ) coin_count[2]++; in READ16_HANDLER()
122 if( ( poll_coins & 0x1 ) & ~( coin_state & 0x1 ) ) coin_count[3]++; in READ16_HANDLER()
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/machine/
H A Dnamcond1_machine.c20 static UINT8 coin_count[4]; variable
46 coin_count[0] = coin_count[1] = in MACHINE_INIT()
47 coin_count[2] = coin_count[3] = 0; in MACHINE_INIT()
91 data = (coin_count[0]<<8) | coin_count[1]; in READ16_HANDLER()
95 data = (coin_count[2]<<8) | coin_count[3]; in READ16_HANDLER()
119 if( ( poll_coins & 0x8 ) & ~( coin_state & 0x8 ) ) coin_count[0]++; in READ16_HANDLER()
120 if( ( poll_coins & 0x4 ) & ~( coin_state & 0x4 ) ) coin_count[1]++; in READ16_HANDLER()
121 if( ( poll_coins & 0x2 ) & ~( coin_state & 0x2 ) ) coin_count[2]++; in READ16_HANDLER()
122 if( ( poll_coins & 0x1 ) & ~( coin_state & 0x1 ) ) coin_count[3]++; in READ16_HANDLER()
/dports/games/libretro-mame2000/mame2000-libretro-e364a15/src/machine/
H A Dtwincobr.c31 static int coin_count; /* coin count increments on startup ? , so stop it */ variable
66 coin_count = 0; in fsharkbt_reset_8741_mcu()
91 coin_count = 0; in wardner_reset()
298 case 0x08: if (coin_count) { coin_counter_w(0,1); coin_counter_w(0,0); } break; in WRITE_HANDLER()
299 case 0x09: if (coin_count) { coin_counter_w(2,1); coin_counter_w(2,0); } break; in WRITE_HANDLER()
300 case 0x0a: if (coin_count) { coin_counter_w(1,1); coin_counter_w(1,0); } break; in WRITE_HANDLER()
301 case 0x0b: if (coin_count) { coin_counter_w(3,1); coin_counter_w(3,0); } break; in WRITE_HANDLER()
305 case 0x0f: coin_lockout_w(1,0); coin_lockout_w(3,0); coin_count=1; break; in WRITE_HANDLER()
/dports/emulators/mess/mame-mame0226/src/mame/drivers/
H A Distrebiteli.cpp185 uint8_t coin_count; member in istrebiteli_state
200 save_item(NAME(coin_count)); in machine_start()
209 coin_count = 0; in machine_reset()
391 coin_count = 0; in sound_w()
473 return coin_count; in CUSTOM_INPUT_MEMBER()
479 ++coin_count; in INPUT_CHANGED_MEMBER()
/dports/emulators/mame/mame-mame0226/src/mame/drivers/
H A Distrebiteli.cpp185 uint8_t coin_count; member in istrebiteli_state
200 save_item(NAME(coin_count)); in machine_start()
209 coin_count = 0; in machine_reset()
391 coin_count = 0; in sound_w()
473 return coin_count; in CUSTOM_INPUT_MEMBER()
479 ++coin_count; in INPUT_CHANGED_MEMBER()
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/drivers/
H A Dnmk16.c637 static UINT8 coin_count[2],coin_count_frac[2]; in hachamf_mcu_run() local
662 case 1: coin_count_frac[i] = 1; coin_count[i] = 4; break; in hachamf_mcu_run()
663 case 2: coin_count_frac[i] = 1; coin_count[i] = 3; break; in hachamf_mcu_run()
664 case 3: coin_count_frac[i] = 1; coin_count[i] = 2; break; in hachamf_mcu_run()
665 case 4: coin_count_frac[i] = 4; coin_count[i] = 1; break; in hachamf_mcu_run()
701 nmk16_mainram[0xef02/2]+=coin_count[0]; in hachamf_mcu_run()
704 nmk16_mainram[0xef00/2]+=coin_count[0]; in hachamf_mcu_run()
709 nmk16_mainram[0xef00/2]+=coin_count[0]; in hachamf_mcu_run()
722 nmk16_mainram[0xef02/2]+=coin_count[1]; in hachamf_mcu_run()
725 nmk16_mainram[0xef00/2]+=coin_count[1]; in hachamf_mcu_run()
[all …]
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/burn/drv/pst90s/
H A Dd_nmk16.cpp2170 static UINT8 coin_count[2],coin_count_frac[2]; in mcu_run() local
2195 case 1: coin_count_frac[i] = 1; coin_count[i] = 4; break; in mcu_run()
2196 case 2: coin_count_frac[i] = 1; coin_count[i] = 3; break; in mcu_run()
2197 case 3: coin_count_frac[i] = 1; coin_count[i] = 2; break; in mcu_run()
2198 case 4: coin_count_frac[i] = 4; coin_count[i] = 1; break; in mcu_run()
2234 nmk16_mainram[0xef02/2]+=coin_count[0]; in mcu_run()
2237 nmk16_mainram[0xef00/2]+=coin_count[0]; in mcu_run()
2242 nmk16_mainram[0xef00/2]+=coin_count[0]; in mcu_run()
2255 nmk16_mainram[0xef02/2]+=coin_count[1]; in mcu_run()
2258 nmk16_mainram[0xef00/2]+=coin_count[1]; in mcu_run()
[all …]
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/burn/drv/pst90s/
H A Dd_nmk16.cpp2268 static UINT8 coin_count[2],coin_count_frac[2]; in mcu_run() local
2293 case 1: coin_count_frac[i] = 1; coin_count[i] = 4; break; in mcu_run()
2294 case 2: coin_count_frac[i] = 1; coin_count[i] = 3; break; in mcu_run()
2295 case 3: coin_count_frac[i] = 1; coin_count[i] = 2; break; in mcu_run()
2296 case 4: coin_count_frac[i] = 4; coin_count[i] = 1; break; in mcu_run()
2332 nmk16_mainram[0xef02/2]+=coin_count[0]; in mcu_run()
2335 nmk16_mainram[0xef00/2]+=coin_count[0]; in mcu_run()
2340 nmk16_mainram[0xef00/2]+=coin_count[0]; in mcu_run()
2353 nmk16_mainram[0xef02/2]+=coin_count[1]; in mcu_run()
2356 nmk16_mainram[0xef00/2]+=coin_count[1]; in mcu_run()
[all …]