summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video/generic.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-12-05 07:54:11 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-12-05 07:54:11 +0000
commit9eda9e163e06bd85a19a4e06b966cb9829e14488 (patch)
treee8d368f397da03693dba343dda776b234d320fe0 /src/emu/video/generic.c
parent320793ee8f09cd0e9963e2f73de6982675cedaae (diff)
More memory system cleanup. Removed SMH_* macros entirely. In
their place are a series of expanded macros and new memory installation helpers. Some mappings below (not all are new): AM_READ(SMH_RAM) -> AM_READONLY AM_WRITE(SMH_RAM) -> AM_WRITEONLY AM_READWRITE(SMH_RAM, SMH_RAM) -> AM_RAM AM_READ(rhandler) AM_WRITE(SMH_RAM) -> AM_RAM_READ(rhandler) AM_READ(SMH_RAM) AM_WRITE(whandler) -> AM_RAM_WRITE(whandler) AM_DEVREAD(tag, rhandler) AM_WRITE(SMH_RAM) -> AM_RAM_DEVREAD(tag, rhandler) AM_READ(SMH_RAM) AM_DEVWRITE(tag, whandler) -> AM_RAM_DEVWRITE(tag, whandler) AM_READ(SMH_ROM) -> AM_ROM AM_WRITE(SMH_ROM) -> (was a no-op) AM_READ(SMH_NOP) -> AM_READNOP AM_WRITE(SMH_NOP) -> AM_WRITENOP AM_READWRITE(SMH_NOP, SMH_NOP) -> AM_NOP For dynamic memory handler installation of the various types, use the new functions: memory_unmap_read() memory_unmap_write() memory_unmap_readwrite() -- unmaps a section of address space memory_nop_read() memory_nop_write() memory_nop_readwrite() -- nops a section of address space Cleaned up the internals of the address_map_entry structure, and also normalized the way the address map macros work to remove a lot of redundancy.
Diffstat (limited to 'src/emu/video/generic.c')
-rw-r--r--src/emu/video/generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/video/generic.c b/src/emu/video/generic.c
index 379e0fdf5fc..8993215fc76 100644
--- a/src/emu/video/generic.c
+++ b/src/emu/video/generic.c
@@ -307,7 +307,7 @@ equal to the size of normal spriteram.
Spriteram size _must_ be declared in the memory map:
- { 0x120000, 0x1207ff, SMH_BANK(2), &spriteram, &spriteram_size },
+ AM_RANGE(0x120000, 0x1207ff) AM_RAMBANK("sprites") AM_BASE_SIZE_GENERIC(spriteram)
Then the video driver must draw the sprites from the buffered_spriteram
pointer. The function buffer_spriteram_w() is used to simulate hardware