diff options
author | Aaron Giles <aaron@aarongiles.com> | 2011-03-27 07:37:24 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2011-03-27 07:37:24 +0000 |
commit | 202d7680a44bec9fa1016e8ba6eeaaba51ef15ab (patch) | |
tree | 6021eb4c3d7324779eaeeab30875f68d42ea2348 /src/mame/drivers/ssingles.c | |
parent | 382e3998b1ca12e6af774cc2652ae515f526ff44 (diff) |
Created new enum type address_spacenum for specifying an address
space by index. Update functions and methods that accepted an
address space index to take an address_spacenum instead. Note that
this means you can't use a raw integer in ADDRESS_SPACE macros, so
instead of 0 use the enumerated AS_0.
Standardized the project on the shortened constants AS_* over the
older ADDRESS_SPACE_*. Removed the latter to prevent confusion.
Also centralized the location of these definitions to memory.h.
Diffstat (limited to 'src/mame/drivers/ssingles.c')
-rw-r--r-- | src/mame/drivers/ssingles.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/ssingles.c b/src/mame/drivers/ssingles.c index 1b33e4173ad..cd897d85b4f 100644 --- a/src/mame/drivers/ssingles.c +++ b/src/mame/drivers/ssingles.c @@ -302,7 +302,7 @@ static CUSTOM_INPUT(controls_r) return data; } -static ADDRESS_MAP_START( ssingles_map, ADDRESS_SPACE_PROGRAM, 8 ) +static ADDRESS_MAP_START( ssingles_map, AS_PROGRAM, 8 ) AM_RANGE(0x0000, 0x00ff) AM_WRITE(ssingles_videoram_w) AM_RANGE(0x0800, 0x08ff) AM_WRITE(ssingles_colorram_w) AM_RANGE(0x0000, 0x1fff) AM_ROM @@ -312,7 +312,7 @@ static ADDRESS_MAP_START( ssingles_map, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0xf800, 0xffff) AM_RAM ADDRESS_MAP_END -static ADDRESS_MAP_START( atamanot_map, ADDRESS_SPACE_PROGRAM, 8 ) +static ADDRESS_MAP_START( atamanot_map, AS_PROGRAM, 8 ) AM_RANGE(0x0000, 0x00ff) AM_WRITE(ssingles_videoram_w) AM_RANGE(0x0800, 0x08ff) AM_WRITE(ssingles_colorram_w) AM_RANGE(0x0000, 0x1fff) AM_ROM @@ -324,7 +324,7 @@ static ADDRESS_MAP_START( atamanot_map, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0xc001, 0xc001) AM_READWRITE( c001_r, c001_w ) ADDRESS_MAP_END -static ADDRESS_MAP_START( ssingles_io_map, ADDRESS_SPACE_IO, 8 ) +static ADDRESS_MAP_START( ssingles_io_map, AS_IO, 8 ) ADDRESS_MAP_GLOBAL_MASK(0xff) AM_RANGE(0x00, 0x00) AM_DEVWRITE("ay1", ay8910_address_w) AM_RANGE(0x04, 0x04) AM_DEVWRITE("ay1", ay8910_data_w) |