diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-09-17 08:22:16 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-09-17 08:22:16 +0000 |
commit | 3cce7e019e095296b5ce2bb45d19b1209bed961d (patch) | |
tree | 4fa76260ac2dee5878fbba70d759ba6a1d4d76bf /src/mess/drivers/lynx.c | |
parent | 22b4739aded17790b3f1bf31b9da8ff9e6a0860c (diff) |
Memory handler normalization, part 2. Change legacy
read/write handlers to take an address_space & instead
of an address_space *. Also update pretty much all other
functions to take a reference where appropriate.
[Aaron Giles]
Diffstat (limited to 'src/mess/drivers/lynx.c')
-rw-r--r-- | src/mess/drivers/lynx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/drivers/lynx.c b/src/mess/drivers/lynx.c index 7936bc4ef7c..4ab33d7fd58 100644 --- a/src/mess/drivers/lynx.c +++ b/src/mess/drivers/lynx.c @@ -138,7 +138,7 @@ ROM_END static QUICKLOAD_LOAD( lynx ) { device_t *cpu = image.device().machine().device("maincpu"); - address_space *space = image.device().machine().device("maincpu")->memory().space(AS_PROGRAM); + address_space &space = *image.device().machine().device("maincpu")->memory().space(AS_PROGRAM); UINT8 *data = NULL; UINT8 *rom = image.device().machine().root_device().memregion("maincpu")->base(); UINT8 header[10]; // 80 08 dw Start dw Len B S 9 3 @@ -165,14 +165,14 @@ static QUICKLOAD_LOAD( lynx ) } for (i = 0; i < length; i++) - space->write_byte(start + i, data[i]); + space.write_byte(start + i, data[i]); free(data); rom[0x1fc] = start & 0xff; rom[0x1fd] = start >> 8; - space->write_byte(0x1fc, start & 0xff); - space->write_byte(0x1fd, start >> 8); + space.write_byte(0x1fc, start & 0xff); + space.write_byte(0x1fd, start >> 8); cpu->state().set_pc(start); |