summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mc68hc11/mc68hc11.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/mc68hc11/mc68hc11.h')
-rw-r--r--src/devices/cpu/mc68hc11/mc68hc11.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/src/devices/cpu/mc68hc11/mc68hc11.h b/src/devices/cpu/mc68hc11/mc68hc11.h
index e6d4f3e21fe..7105a97f987 100644
--- a/src/devices/cpu/mc68hc11/mc68hc11.h
+++ b/src/devices/cpu/mc68hc11/mc68hc11.h
@@ -42,7 +42,7 @@ class mc68hc11_cpu_device : public cpu_device
{
public:
// construction/destruction
- mc68hc11_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ mc68hc11_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// I/O enable flag
static void set_has_extended_io(device_t &device, int has_extended_io) { downcast<mc68hc11_cpu_device &>(device).m_has_extended_io = has_extended_io; }
@@ -56,10 +56,10 @@ protected:
virtual void device_reset() override;
// device_execute_interface overrides
- virtual UINT32 execute_min_cycles() const override { return 1; }
- virtual UINT32 execute_max_cycles() const override { return 41; }
- virtual UINT32 execute_input_lines() const override { return 2; }
- virtual UINT32 execute_default_irq_vector() const override { return 0; }
+ virtual uint32_t execute_min_cycles() const override { return 1; }
+ virtual uint32_t execute_max_cycles() const override { return 41; }
+ virtual uint32_t execute_input_lines() const override { return 2; }
+ virtual uint32_t execute_default_irq_vector() const override { return 0; }
virtual void execute_run() override;
virtual void execute_set_input(int inputnum, int state) override;
@@ -73,9 +73,9 @@ protected:
virtual void state_string_export(const device_state_entry &entry, std::string &str) const override;
// device_disasm_interface overrides
- virtual UINT32 disasm_min_opcode_bytes() const override { return 1; }
- virtual UINT32 disasm_max_opcode_bytes() const override { return 5; }
- virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options) override;
+ virtual uint32_t disasm_min_opcode_bytes() const override { return 1; }
+ virtual uint32_t disasm_max_opcode_bytes() const override { return 5; }
+ virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override;
private:
address_space_config m_program_config;
@@ -84,27 +84,27 @@ private:
union {
struct {
#ifdef LSB_FIRST
- UINT8 b;
- UINT8 a;
+ uint8_t b;
+ uint8_t a;
#else
- UINT8 a;
- UINT8 b;
+ uint8_t a;
+ uint8_t b;
#endif
} d8;
- UINT16 d16;
+ uint16_t d16;
} m_d;
- UINT16 m_ix;
- UINT16 m_iy;
- UINT16 m_sp;
- UINT16 m_pc;
- UINT16 m_ppc;
- UINT8 m_ccr;
+ uint16_t m_ix;
+ uint16_t m_iy;
+ uint16_t m_sp;
+ uint16_t m_pc;
+ uint16_t m_ppc;
+ uint8_t m_ccr;
- UINT8 m_adctl;
+ uint8_t m_adctl;
int m_ad_channel;
- UINT8 m_irq_state[2];
+ uint8_t m_irq_state[2];
direct_read_data *m_direct;
address_space *m_program;
address_space *m_io;
@@ -112,23 +112,23 @@ private:
int m_ram_position;
int m_reg_position;
- std::vector<UINT8> m_internal_ram;
+ std::vector<uint8_t> m_internal_ram;
int m_has_extended_io; // extended I/O enable flag
int m_internal_ram_size;
int m_init_value;
- UINT8 m_wait_state;
- UINT8 m_stop_state;
+ uint8_t m_wait_state;
+ uint8_t m_stop_state;
- UINT8 m_tflg1;
- UINT8 m_tmsk1;
- UINT16 m_toc1;
- UINT16 m_tcnt;
-// UINT8 m_por;
- UINT8 m_pr;
+ uint8_t m_tflg1;
+ uint8_t m_tmsk1;
+ uint16_t m_toc1;
+ uint16_t m_tcnt;
+// uint8_t m_por;
+ uint8_t m_pr;
- UINT64 m_frc_base;
+ uint64_t m_frc_base;
typedef void (mc68hc11_cpu_device::*ophandler)();
struct hc11_opcode_list_struct
@@ -144,20 +144,20 @@ private:
ophandler hc11_optable_page3[256];
ophandler hc11_optable_page4[256];
- UINT8 hc11_regs_r(UINT32 address);
- void hc11_regs_w(UINT32 address, UINT8 value);
- UINT8 FETCH();
- UINT16 FETCH16();
- UINT8 READ8(UINT32 address);
- void WRITE8(UINT32 address, UINT8 value);
- UINT16 READ16(UINT32 address);
- void WRITE16(UINT32 address, UINT16 value);
+ uint8_t hc11_regs_r(uint32_t address);
+ void hc11_regs_w(uint32_t address, uint8_t value);
+ uint8_t FETCH();
+ uint16_t FETCH16();
+ uint8_t READ8(uint32_t address);
+ void WRITE8(uint32_t address, uint8_t value);
+ uint16_t READ16(uint32_t address);
+ void WRITE16(uint32_t address, uint16_t value);
void CYCLES(int cycles);
void SET_PC(int pc);
- void PUSH8(UINT8 value);
- void PUSH16(UINT16 value);
- UINT8 POP8();
- UINT16 POP16();
+ void PUSH8(uint8_t value);
+ void PUSH16(uint16_t value);
+ uint8_t POP8();
+ uint16_t POP16();
void hc11_aba();
void hc11_abx();
void hc11_aby();