diff options
author | 2018-05-11 01:12:28 +0900 | |
---|---|---|
committer | 2018-05-11 18:23:04 +0900 | |
commit | 4c24f25845f129f77829fc6d8e701a0e3762be80 (patch) | |
tree | 9bd0b9d5cf348f95ffa86911b71956fdd7f8b410 /src/devices/cpu/m6502/m6509.cpp | |
parent | de781d1d84e064956df88bfec929b573d4800789 (diff) |
emumem: Rename direct_read_handler to memory_access_cache. Parametrize the template on more information (data width, endianness) to make it possible to turn it into an handler cache eventually, and not just a memory block cache. Make it capable of large and unaligned accesses. [O. Galibert]
Diffstat (limited to 'src/devices/cpu/m6502/m6509.cpp')
-rw-r--r-- | src/devices/cpu/m6502/m6509.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/cpu/m6502/m6509.cpp b/src/devices/cpu/m6502/m6509.cpp index 8536d04fe04..95c2d62b79a 100644 --- a/src/devices/cpu/m6502/m6509.cpp +++ b/src/devices/cpu/m6502/m6509.cpp @@ -25,7 +25,7 @@ m6509_device::m6509_device(const machine_config &mconfig, const char *tag, devic void m6509_device::device_start() { - if(direct_disabled) + if(cache_disabled) mintf = std::make_unique<mi_6509_nd>(this); else mintf = std::make_unique<mi_6509_normal>(this); @@ -72,7 +72,7 @@ uint8_t m6509_device::mi_6509_normal::read(uint16_t adr) uint8_t m6509_device::mi_6509_normal::read_sync(uint16_t adr) { - uint8_t res = sdirect->read_byte(base->adr_in_bank_i(adr)); + uint8_t res = scache->read_byte(base->adr_in_bank_i(adr)); if(adr == 0x0000) res = base->bank_i_r(); else if(adr == 0x0001) @@ -82,7 +82,7 @@ uint8_t m6509_device::mi_6509_normal::read_sync(uint16_t adr) uint8_t m6509_device::mi_6509_normal::read_arg(uint16_t adr) { - uint8_t res = direct->read_byte(base->adr_in_bank_i(adr)); + uint8_t res = cache->read_byte(base->adr_in_bank_i(adr)); if(adr == 0x0000) res = base->bank_i_r(); else if(adr == 0x0001) |