summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-16 19:33:25 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-16 19:33:25 -0500
commitfe74dec1f1c30da0db2616b1655ff95c3e9f132f (patch)
tree4e1456182752afefe686bcd47d1fce3050f50809 /src/mame
parent7fc95563b8189a99527143df96884e1771a5f954 (diff)
vsmile.cpp, vsmileb.cpp: Rename BIOS regions and make width explicit (nw)
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/vsmile.cpp32
-rw-r--r--src/mame/drivers/vsmileb.cpp10
-rw-r--r--src/mame/includes/vsmile.h2
3 files changed, 22 insertions, 22 deletions
diff --git a/src/mame/drivers/vsmile.cpp b/src/mame/drivers/vsmile.cpp
index da899fefec8..880d401a03f 100644
--- a/src/mame/drivers/vsmile.cpp
+++ b/src/mame/drivers/vsmile.cpp
@@ -153,20 +153,20 @@ void vsmile_base_state::mem_map(address_map &map)
void vsmile_state::banked_map(address_map &map)
{
- map(0x0000000, 0x00fffff).rom().region("maincpu", 0);
- map(0x0100000, 0x01fffff).rom().region("maincpu", 0);
- map(0x0200000, 0x02fffff).rom().region("maincpu", 0);
- map(0x0300000, 0x03fffff).rom().region("maincpu", 0);
+ map(0x0000000, 0x00fffff).rom().region("bios", 0);
+ map(0x0100000, 0x01fffff).rom().region("bios", 0);
+ map(0x0200000, 0x02fffff).rom().region("bios", 0);
+ map(0x0300000, 0x03fffff).rom().region("bios", 0);
- map(0x0400000, 0x04fffff).rom().region("maincpu", 0);
- map(0x0500000, 0x05fffff).rom().region("maincpu", 0);
- map(0x0600000, 0x06fffff).rom().region("maincpu", 0);
- map(0x0700000, 0x07fffff).rom().region("maincpu", 0);
+ map(0x0400000, 0x04fffff).rom().region("bios", 0);
+ map(0x0500000, 0x05fffff).rom().region("bios", 0);
+ map(0x0600000, 0x06fffff).rom().region("bios", 0);
+ map(0x0700000, 0x07fffff).rom().region("bios", 0);
- map(0x0800000, 0x08fffff).rom().region("maincpu", 0);
- map(0x0900000, 0x09fffff).rom().region("maincpu", 0);
- map(0x0a00000, 0x0afffff).rom().region("maincpu", 0);
- map(0x0b00000, 0x0bfffff).rom().region("maincpu", 0);
+ map(0x0800000, 0x08fffff).rom().region("bios", 0);
+ map(0x0900000, 0x09fffff).rom().region("bios", 0);
+ map(0x0a00000, 0x0afffff).rom().region("bios", 0);
+ map(0x0b00000, 0x0bfffff).rom().region("bios", 0);
map(0x1000000, 0x13fffff).rw(m_cart, FUNC(vsmile_cart_slot_device::bank0_r), FUNC(vsmile_cart_slot_device::bank0_w));
@@ -284,22 +284,22 @@ void vsmilem_state::vsmilem(machine_config &config)
// TODO: decide on a dump endian, these likely differ in endianess due to different dumping technqiues
ROM_START( vsmile )
- ROM_REGION( 0x800000, "maincpu", ROMREGION_ERASEFF )
+ ROM_REGION16_LE( 0x800000, "bios", ROMREGION_ERASEFF )
ROM_LOAD( "vsmilebios.bin", 0x000000, 0x200000, CRC(11f1b416) SHA1(11f77c4973d29c962567390e41879c86a759c93b) )
ROM_END
ROM_START( vsmileg )
- ROM_REGION( 0x800000, "maincpu", ROMREGION_ERASEFF )
+ ROM_REGION16_LE( 0x800000, "bios", ROMREGION_ERASEFF )
ROM_LOAD16_WORD_SWAP( "bios german.bin", 0x000000, 0x200000, CRC(205c5296) SHA1(7fbcf761b5885c8b1524607aabaf364b4559c8cc) )
ROM_END
ROM_START( vsmilef )
- ROM_REGION( 0x800000, "maincpu", ROMREGION_ERASEFF )
+ ROM_REGION16_LE( 0x800000, "bios", ROMREGION_ERASEFF )
ROM_LOAD16_WORD_SWAP( "sysrom_france", 0x000000, 0x200000, CRC(0cd0bdf5) SHA1(5c8d1eada1b6b545555b8d2b09325d7127681af8) )
ROM_END
ROM_START( vsmilem )
- ROM_REGION( 0x800000, "maincpu", ROMREGION_ERASEFF )
+ ROM_REGION16_LE( 0x800000, "bios", ROMREGION_ERASEFF )
ROM_LOAD( "vsmilebios.bin", 0x000000, 0x200000, BAD_DUMP CRC(11f1b416) SHA1(11f77c4973d29c962567390e41879c86a759c93b) )
ROM_END
diff --git a/src/mame/drivers/vsmileb.cpp b/src/mame/drivers/vsmileb.cpp
index c086c238047..c32d3a81e3c 100644
--- a/src/mame/drivers/vsmileb.cpp
+++ b/src/mame/drivers/vsmileb.cpp
@@ -70,9 +70,9 @@ template <uint16_t V> INPUT_CHANGED_MEMBER(vsmileb_state::sw_mode)
void vsmileb_state::banked_map(address_map &map)
{
- map(0x0000000, 0x03fffff).rom().region("maincpu", 0);
- map(0x0400000, 0x07fffff).rom().region("maincpu", 0);
- map(0x0800000, 0x0bfffff).rom().region("maincpu", 0);
+ map(0x0000000, 0x03fffff).rom().region("bios", 0);
+ map(0x0400000, 0x07fffff).rom().region("bios", 0);
+ map(0x0800000, 0x0bfffff).rom().region("bios", 0);
map(0x1000000, 0x13fffff).rw(m_cart, FUNC(vsmile_cart_slot_device::bank0_r), FUNC(vsmile_cart_slot_device::bank0_w));
@@ -152,12 +152,12 @@ void vsmileb_state::vsmilebp(machine_config &config)
// TODO: decide on a dump endian, these likely differ in endianess due to different dumping technqiues
ROM_START( vsmileb )
- ROM_REGION( 0x800000, "maincpu", ROMREGION_ERASEFF )
+ ROM_REGION16_LE( 0x800000, "bios", ROMREGION_ERASEFF )
ROM_LOAD( "vbabybios.bin", 0x000000, 0x800000, CRC(ddc7f845) SHA1(2c17d0f54200070176d03d44a40c7923636e596a) )
ROM_END
ROM_START( vsmilebsw )
- ROM_REGION( 0x800000, "maincpu", ROMREGION_ERASEFF )
+ ROM_REGION16_LE( 0x800000, "bios", ROMREGION_ERASEFF )
ROM_LOAD16_WORD_SWAP( "vsmileswedenbios.bin", 0x000000, 0x800000, CRC(8b464b19) SHA1(cea304ba886c39e86906aad3dce17d5fff7cfcbe) )
ROM_END
diff --git a/src/mame/includes/vsmile.h b/src/mame/includes/vsmile.h
index 08364314240..a84f37cce0a 100644
--- a/src/mame/includes/vsmile.h
+++ b/src/mame/includes/vsmile.h
@@ -40,7 +40,7 @@ public:
, m_screen(*this, "screen")
, m_bankdev(*this, "bank")
, m_cart(*this, "cartslot")
- , m_system_region(*this, "maincpu")
+ , m_system_region(*this, "bios")
{ }
void vsmile_base(machine_config &config);