From e1db142336b68849322037a8aede156c89615cee Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Tue, 2 Sep 2014 05:37:07 +0000 Subject: [PATCH] a7800 minor comments/cleanups. nw. --- src/emu/bus/a7800/a78_slot.c | 6 ++++-- src/emu/bus/a7800/a78_slot.h | 3 ++- src/emu/bus/a7800/rom.c | 12 ++++++------ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/emu/bus/a7800/a78_slot.c b/src/emu/bus/a7800/a78_slot.c index 9b998aa3534..79eed0a6411 100644 --- a/src/emu/bus/a7800/a78_slot.c +++ b/src/emu/bus/a7800/a78_slot.c @@ -118,6 +118,7 @@ a78_cart_slot_device::a78_cart_slot_device(const machine_config &mconfig, const device_image_interface(mconfig, *this), device_slot_interface(mconfig, *this) { + m_type = A78_NOCART; } @@ -182,6 +183,7 @@ static const a78_slot slot_list[] = { A78_BANKRAM, "a78_bankram" }, { A78_XB_BOARD, "a78_xboard" }, { A78_XM_BOARD, "a78_xm" }, + { A78_NOCART, "empty" }, }; static int a78_get_pcb_id(const char *slot) @@ -335,8 +337,8 @@ bool a78_cart_slot_device::call_softlist_load(software_list_device &swlist, cons } /*------------------------------------------------- - identify_cart_type - code to detect cart type from - fullpath + verify_header - check the image (from fullpath) + has an admissible header -------------------------------------------------*/ int a78_cart_slot_device::verify_header(char *header) diff --git a/src/emu/bus/a7800/a78_slot.h b/src/emu/bus/a7800/a78_slot.h index b49b6e677ce..cd8fce8cc2e 100644 --- a/src/emu/bus/a7800/a78_slot.h +++ b/src/emu/bus/a7800/a78_slot.h @@ -22,7 +22,8 @@ enum A78_BANKRAM, // SuperGame + 32K RAM banked (untested) A78_XB_BOARD, // A7800 Expansion Board (it shall more or less apply to the Expansion Module too, but this is not officially released yet) A78_XM_BOARD, // A7800 XM Expansion Module (theoretical specs only, since this is not officially released yet) - A78_TYPEB // Cart exploiting the XB board, but possibly also compatible with non-expanded A7800 + A78_TYPEB, // Cart exploiting the XB board, but possibly also compatible with non-expanded A7800 + A78_NOCART }; diff --git a/src/emu/bus/a7800/rom.c b/src/emu/bus/a7800/rom.c index 2bec42385e5..e3341e9180c 100644 --- a/src/emu/bus/a7800/rom.c +++ b/src/emu/bus/a7800/rom.c @@ -179,7 +179,7 @@ MACHINE_CONFIG_END Carts with no bankswitch (8K to 48K) - GAMES: + GAMES: Asteroids, Centipede, Dig Dug and many more -------------------------------------------------*/ @@ -197,7 +197,7 @@ READ8_MEMBER(a78_rom_device::read_40xx) The Pokey chips is accessed at 0x0450-0x045f or by writing at 0x4000-0x7fff in some games. - GAMES: + GAMES: Ballblazer, Beef Drop (homebrew) -------------------------------------------------*/ @@ -240,7 +240,7 @@ machine_config_constructor a78_rom_pokey_device::device_mconfig_additions() cons Note that the code is written so that also homebrew games with larger ROMs work! - GAMES: + GAMES: Crack'd, Fatal Run, Ikari Warriors... -------------------------------------------------*/ @@ -266,7 +266,7 @@ WRITE8_MEMBER(a78_rom_sg_device::write_40xx) Carts with SuperGame bankswitch + POKEY chip As above, the Pokey chips is accessed at - GAMES: + GAMES: Commando -------------------------------------------------*/ @@ -305,7 +305,7 @@ machine_config_constructor a78_rom_sg_pokey_device::device_mconfig_additions() c for the moment we treat all as 16K of RAM even if from softlist we shall differentiate between them. - GAMES: + GAMES: Impossible Mission, Jinks and some protos -------------------------------------------------*/ @@ -366,7 +366,7 @@ WRITE8_MEMBER(a78_rom_bankram_device::write_40xx) 9 x 16K banks mappable in 0x8000-0xbfff bank 7 is always mapped in 0xc000-0xffff - GAMES: + GAMES: Alien Brigade & Crossbow -------------------------------------------------*/