diff options
author | Curt Coder <curtcoder@mail.com> | 2008-12-13 19:29:38 +0000 |
---|---|---|
committer | Curt Coder <curtcoder@mail.com> | 2008-12-13 19:29:38 +0000 |
commit | 43fb096253040bd1cc93541b9b86d4c35ac23a12 (patch) | |
tree | b6410b46875faac8c57d5ab2195e4491c2fff142 /src | |
parent | aa8708e5624feb9353226f0661b522a3e4f04e6f (diff) |
Used cleaner function and demoted some games to NOT_WORKING due to strange behavior.
Diffstat (limited to 'src')
-rw-r--r-- | src/mame/drivers/n8080.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/mame/drivers/n8080.c b/src/mame/drivers/n8080.c index eba7def5768..5ddbd0f802b 100644 --- a/src/mame/drivers/n8080.c +++ b/src/mame/drivers/n8080.c @@ -69,7 +69,7 @@ static TIMER_DEVICE_CALLBACK( rst1_tick ) int state = inte ? ASSERT_LINE : CLEAR_LINE; /* V7 = 1, V6 = 0 */ - cpu_set_input_line_and_vector(cputag_get_cpu(timer->machine, "main"), INPUT_LINE_IRQ0, state, 0xcf); + cputag_set_input_line_and_vector(timer->machine, "main", INPUT_LINE_IRQ0, state, 0xcf); } static TIMER_DEVICE_CALLBACK( rst2_tick ) @@ -77,7 +77,7 @@ static TIMER_DEVICE_CALLBACK( rst2_tick ) int state = inte ? ASSERT_LINE : CLEAR_LINE; /* vblank */ - cpu_set_input_line_and_vector(cputag_get_cpu(timer->machine, "main"), INPUT_LINE_IRQ0, state, 0xd7); + cputag_set_input_line_and_vector(timer->machine, "main", INPUT_LINE_IRQ0, state, 0xd7); } static void n8080_inte_callback(const device_config *device, int state) @@ -96,8 +96,10 @@ static void n8080_status_callback(const device_config *device, UINT8 status) static MACHINE_START( spacefev ) { - i8085_set_status_callback(cputag_get_cpu(machine, "main"), n8080_status_callback); - i8085_set_inte_callback(cputag_get_cpu(machine, "main"), n8080_inte_callback); + const device_config *cpu = cputag_get_cpu(machine, "main"); + + i8085_set_status_callback(cpu, n8080_status_callback); + i8085_set_inte_callback(cpu, n8080_inte_callback); } static MACHINE_DRIVER_START( spacefev ) @@ -793,8 +795,8 @@ GAME( 1979, spacefev, 0, spacefev, spacefev, 0, ROT270, "Nintendo", "Spac GAME( 1979, spacefva, spacefev, spacefev, spacefev, 0, ROT270, "Nintendo", "Space Fever (set 2)", 0 ) GAME( 1979, highsplt, 0, spacefev, highsplt, 0, ROT270, "Nintendo", "Space Fever High Splitter (set 1)", 0 ) GAME( 1979, highspla, highsplt, spacefev, highsplt, 0, ROT270, "Nintendo", "Space Fever High Splitter (set 2)", 0 ) -GAME( 1979, spacelnc, 0, spacefev, spacelnc, 0, ROT270, "Nintendo", "Space Launcher", 0 ) +GAME( 1979, spacelnc, 0, spacefev, spacelnc, 0, ROT270, "Nintendo", "Space Launcher", GAME_NOT_WORKING ) GAME( 1979, sheriff, 0, sheriff, sheriff, 0, ROT270, "Nintendo", "Sheriff", 0 ) GAME( 1980, bandido, sheriff, sheriff, bandido, 0, ROT270, "Exidy", "Bandido", 0 ) -GAME( 1980, helifire, 0, helifire, helifire, 0, ROT270, "Nintendo", "HeliFire (set 1)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL ) -GAME( 1980, helifira, helifire, helifire, helifire, 0, ROT270, "Nintendo", "HeliFire (set 2)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL ) +GAME( 1980, helifire, 0, helifire, helifire, 0, ROT270, "Nintendo", "HeliFire (set 1)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) +GAME( 1980, helifira, helifire, helifire, helifire, 0, ROT270, "Nintendo", "HeliFire (set 2)", GAME_NOT_WORKING | GAME_NO_COCKTAIL ) |