summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/m6502.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-09-03 23:55:53 +0200
committer Olivier Galibert <galibert@pobox.com>2022-09-06 19:04:46 +0200
commitef8ac6eee82fb1c033cf32925ffdcdac146b51f1 (patch)
treecc18d3622e64ab62679ccf1aa6b447bb397bbc0e /src/devices/cpu/m6502/m6502.cpp
parent6563dfe9cf93c4e39b3ea9caa73c050147644075 (diff)
* new WORKING machine
---- MTU-130 [Olivier Galibert, David Williams, Disk Blitz, Eric Wright]
Diffstat (limited to 'src/devices/cpu/m6502/m6502.cpp')
-rw-r--r--src/devices/cpu/m6502/m6502.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/devices/cpu/m6502/m6502.cpp b/src/devices/cpu/m6502/m6502.cpp
index 5db4186ebd9..3817ab33187 100644
--- a/src/devices/cpu/m6502/m6502.cpp
+++ b/src/devices/cpu/m6502/m6502.cpp
@@ -43,12 +43,14 @@ void m6502_device::device_start()
void m6502_device::init()
{
- space(AS_PROGRAM).cache(mintf->cprogram);
- space(has_space(AS_OPCODES) ? AS_OPCODES : AS_PROGRAM).cache(mintf->csprogram);
- if(space(AS_PROGRAM).addr_width() > 14)
- space(AS_PROGRAM).specific(mintf->program);
- else
- space(AS_PROGRAM).specific(mintf->program14);
+ if(mintf) {
+ space(AS_PROGRAM).cache(mintf->cprogram);
+ space(has_space(AS_OPCODES) ? AS_OPCODES : AS_PROGRAM).cache(mintf->csprogram);
+ if(space(AS_PROGRAM).addr_width() > 14)
+ space(AS_PROGRAM).specific(mintf->program);
+ else
+ space(AS_PROGRAM).specific(mintf->program14);
+ }
sync_w.resolve_safe();