summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/patinhofeio/patinho_feio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/patinhofeio/patinho_feio.cpp')
-rw-r--r--src/devices/cpu/patinhofeio/patinho_feio.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/patinhofeio/patinho_feio.cpp b/src/devices/cpu/patinhofeio/patinho_feio.cpp
index bd9479038d2..f482e2d3b19 100644
--- a/src/devices/cpu/patinhofeio/patinho_feio.cpp
+++ b/src/devices/cpu/patinhofeio/patinho_feio.cpp
@@ -5,9 +5,9 @@
*/
#include "emu.h"
-#include "debugger.h"
#include "patinhofeio_cpu.h"
-#include "includes/patinhofeio.h"
+#include "debugger.h"
+#include "includes/patinhofeio.h" // FIXME: this is a dependency from devices on MAME
#define PC m_pc //The program counter is called "contador de instrucoes" (IC) in portuguese
#define ACC m_acc
@@ -49,7 +49,7 @@ void patinho_feio_cpu_device::compute_effective_address(unsigned int addr){
}
}
-const device_type PATO_FEIO_CPU = device_creator<patinho_feio_cpu_device>;
+DEFINE_DEVICE_TYPE(PATO_FEIO_CPU, patinho_feio_cpu_device, "pato_feio_cpu", "Patinho Feio CPU")
//Internal 4kbytes of RAM
static ADDRESS_MAP_START(prog_8bit, AS_PROGRAM, 8, patinho_feio_cpu_device)
@@ -57,7 +57,7 @@ static ADDRESS_MAP_START(prog_8bit, AS_PROGRAM, 8, patinho_feio_cpu_device)
ADDRESS_MAP_END
patinho_feio_cpu_device::patinho_feio_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : cpu_device(mconfig, PATO_FEIO_CPU, "Patinho Feio CPU", tag, owner, clock, "pato_feio_cpu", __FILE__)
+ : cpu_device(mconfig, PATO_FEIO_CPU, tag, owner, clock)
, m_program_config("program", ENDIANNESS_LITTLE, 8, 12, 0, ADDRESS_MAP_NAME(prog_8bit))
, m_icount(0)
, m_rc_read_cb(*this)