summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/m65ce02.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m6502/m65ce02.cpp')
-rw-r--r--src/devices/cpu/m6502/m65ce02.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/devices/cpu/m6502/m65ce02.cpp b/src/devices/cpu/m6502/m65ce02.cpp
index e336e936545..22e6bd5f3c5 100644
--- a/src/devices/cpu/m6502/m65ce02.cpp
+++ b/src/devices/cpu/m6502/m65ce02.cpp
@@ -2,7 +2,7 @@
// copyright-holders:Olivier Galibert
/***************************************************************************
- m65ce02.c
+ m65ce02.cpp
6502 with Z register and some more stuff
@@ -12,7 +12,7 @@
#include "m65ce02.h"
#include "m65ce02d.h"
-DEFINE_DEVICE_TYPE(M65CE02, m65ce02_device, "m65ce02", "MOS Technology M65CE02")
+DEFINE_DEVICE_TYPE(M65CE02, m65ce02_device, "m65ce02", "CSG 65CE02")
m65ce02_device::m65ce02_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
m65ce02_device(mconfig, M65CE02, tag, owner, clock)
@@ -20,7 +20,7 @@ m65ce02_device::m65ce02_device(const machine_config &mconfig, const char *tag, d
}
m65ce02_device::m65ce02_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) :
- m65c02_device(mconfig, type, tag, owner, clock), TMP3(0), Z(0), B(0)
+ w65c02_device(mconfig, type, tag, owner, clock), TMP3(0), Z(0), B(0)
{
}
@@ -31,7 +31,7 @@ std::unique_ptr<util::disasm_interface> m65ce02_device::create_disassembler()
void m65ce02_device::init()
{
- m65c02_device::init();
+ w65c02_device::init();
state_add(M65CE02_Z, "Z", Z);
state_add(M65CE02_B, "B", B).callimport().formatstr("%2s");
save_item(NAME(B));
@@ -44,17 +44,14 @@ void m65ce02_device::init()
void m65ce02_device::device_start()
{
- if(cache_disabled)
- mintf = std::make_unique<mi_default_nd>();
- else
- mintf = std::make_unique<mi_default_normal>();
+ mintf = std::make_unique<mi_default>();
init();
}
void m65ce02_device::device_reset()
{
- m65c02_device::device_reset();
+ w65c02_device::device_reset();
Z = 0x00;
B = 0x0000;
}