summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/m740.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m6502/m740.h')
-rw-r--r--src/devices/cpu/m6502/m740.h79
1 files changed, 40 insertions, 39 deletions
diff --git a/src/devices/cpu/m6502/m740.h b/src/devices/cpu/m6502/m740.h
index 2e94a82980a..350ea8bced6 100644
--- a/src/devices/cpu/m6502/m740.h
+++ b/src/devices/cpu/m6502/m740.h
@@ -8,50 +8,51 @@
***************************************************************************/
-#ifndef __M740_H__
-#define __M740_H__
+#ifndef MAME_CPU_M6502_M740_H
+#define MAME_CPU_M6502_M740_H
#include "m6502.h"
class m740_device : public m6502_device {
public:
- enum
- {
- M740_INT0_LINE = INPUT_LINE_IRQ0, // (fffc)
- M740_INT1_LINE, // (fffa)
- M740_INT2_LINE, // (fff8)
- M740_INT3_LINE, // (fff6)
- M740_INT4_LINE, // (fff4)
- M740_INT5_LINE, // (fff2)
- M740_INT6_LINE, // (fff0)
- M740_INT7_LINE, // (ffee)
- M740_INT8_LINE, // (ffec)
- M740_INT9_LINE, // (ffea)
- M740_INT10_LINE, // (ffe8)
- M740_INT11_LINE, // (ffe6)
- M740_INT12_LINE, // (ffe4)
- M740_INT13_LINE, // (ffe2)
- M740_INT14_LINE, // (ffe0)
- M740_MAX_INT_LINE = M740_INT14_LINE,
- M740_SET_OVERFLOW = m6502_device::V_LINE
- };
-
- m740_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- m740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
-
- virtual void device_start() override;
- virtual void device_reset() override;
-
- static const disasm_entry disasm_entries[0x200];
-
- virtual void state_string_export(const device_state_entry &entry, std::string &str) const override;
-
- virtual offs_t disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override;
- virtual void do_exec_full() override;
- virtual void do_exec_partial() override;
- virtual void execute_set_input(int inputnum, int state) override;
+ enum
+ {
+ M740_INT0_LINE = INPUT_LINE_IRQ0, // (fffc)
+ M740_INT1_LINE, // (fffa)
+ M740_INT2_LINE, // (fff8)
+ M740_INT3_LINE, // (fff6)
+ M740_INT4_LINE, // (fff4)
+ M740_INT5_LINE, // (fff2)
+ M740_INT6_LINE, // (fff0)
+ M740_INT7_LINE, // (ffee)
+ M740_INT8_LINE, // (ffec)
+ M740_INT9_LINE, // (ffea)
+ M740_INT10_LINE, // (ffe8)
+ M740_INT11_LINE, // (ffe6)
+ M740_INT12_LINE, // (ffe4)
+ M740_INT13_LINE, // (ffe2)
+ M740_INT14_LINE, // (ffe0)
+ M740_MAX_INT_LINE = M740_INT14_LINE,
+ M740_SET_OVERFLOW = m6502_device::V_LINE
+ };
+
+ m740_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+ virtual void device_start() override;
+ virtual void device_reset() override;
+
+ static const disasm_entry disasm_entries[0x200];
+
+ virtual void state_string_export(const device_state_entry &entry, std::string &str) const override;
+
+ virtual offs_t disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override;
+ virtual void do_exec_full() override;
+ virtual void do_exec_partial() override;
+ virtual void execute_set_input(int inputnum, int state) override;
protected:
+ m740_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
#define O(o) void o ## _full(); void o ## _partial()
uint8_t do_clb(uint8_t in, uint8_t bit);
@@ -100,6 +101,6 @@ protected:
void set_irq_line(int line, int state);
};
-extern const device_type M740;
+DECLARE_DEVICE_TYPE(M740, m740_device)
-#endif
+#endif // MAME_CPU_M6502_M740_H