summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/superqix.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-12-03 08:16:38 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-12-03 08:16:38 +0000
commit0069237f206a4374065f3aa764bf68fe64481da5 (patch)
tree79dc7ba01649a811df3222ec21c6c72d0a630364 /src/mame/video/superqix.c
parentd642d98b583fb3ed67d9c0a51f90fb25e3fa8471 (diff)
Memory banks are now referenced by tag rather than index.
Changed all memory_bank_* functions to specify a tag. Bulk-converted existing banks to be tagged "bank##" in order to ensure consistency. However, going forward, the tags don't matter, so please name them something useful. Added AM_BANK_READ/AM_BANK_WRITE macros to let you specify bank tags. Also changed AM_ROMBANK and AM_RAMBANK macros to accept tags as well. Added new functions memory_install_read_bank_handler and memory_install_write_bank_handler to install banks by tag name, similar to input ports. Changed internals of memory system to dynamically allocate all banks. The first time a bank with an unknown tag is installed, a new bank object is created and tracked internally. Removed all SMH_BANK(n) references outside of the main code; these should never, ever be useful anymore.
Diffstat (limited to 'src/mame/video/superqix.c')
-rw-r--r--src/mame/video/superqix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/superqix.c b/src/mame/video/superqix.c
index 6fd4868b779..85071f0d05b 100644
--- a/src/mame/video/superqix.c
+++ b/src/mame/video/superqix.c
@@ -135,7 +135,7 @@ WRITE8_HANDLER( pbillian_0410_w )
coin_counter_w(space->machine, 0,data & 0x02);
coin_counter_w(space->machine, 1,data & 0x04);
- memory_set_bank(space->machine, 1, (data & 0x08) >> 3);
+ memory_set_bank(space->machine, "bank1", (data & 0x08) >> 3);
interrupt_enable_w(space,0,data & 0x10);
flip_screen_set(space->machine, data & 0x20);
@@ -157,7 +157,7 @@ WRITE8_HANDLER( superqix_0410_w )
interrupt_enable_w(space,offset,data & 0x08);
/* bits 4-5 control ROM bank */
- memory_set_bank(space->machine, 1, (data & 0x30) >> 4);
+ memory_set_bank(space->machine, "bank1", (data & 0x30) >> 4);
}