diff options
Diffstat (limited to 'src/devices/cpu/m6809/konami.cpp')
-rw-r--r-- | src/devices/cpu/m6809/konami.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/devices/cpu/m6809/konami.cpp b/src/devices/cpu/m6809/konami.cpp index f8db9587678..8762d358635 100644 --- a/src/devices/cpu/m6809/konami.cpp +++ b/src/devices/cpu/m6809/konami.cpp @@ -18,9 +18,9 @@ 6809 Microcomputer Programming & Interfacing with Experiments" by Andrew C. Staugaard, Jr.; Howard W. Sams & Co., Inc. - System dependencies: UINT16 must be 16 bit unsigned int - UINT8 must be 8 bit unsigned int - UINT32 must be more than 16 bits + System dependencies: uint16_t must be 16 bit unsigned int + uint8_t must be 8 bit unsigned int + uint32_t must be more than 16 bits arrays up to 65536 bytes must be supported machine must be twos complement @@ -84,7 +84,7 @@ const device_type KONAMI = &device_creator<konami_cpu_device>; // konami_cpu_device - constructor //------------------------------------------------- -konami_cpu_device::konami_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +konami_cpu_device::konami_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : m6809_base_device(mconfig, "KONAMI CPU", tag, owner, clock, KONAMI, 1, "konami_cpu", __FILE__), m_set_lines(*this) { @@ -109,7 +109,7 @@ void konami_cpu_device::device_start() // helper function //------------------------------------------------- -offs_t konami_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options) +offs_t konami_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) { extern CPU_DISASSEMBLE( konami ); return CPU_DISASSEMBLE_NAME(konami)(this, buffer, pc, oprom, opram, options); @@ -120,7 +120,7 @@ offs_t konami_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT // read_operand //------------------------------------------------- -inline UINT8 konami_cpu_device::read_operand() +inline uint8_t konami_cpu_device::read_operand() { return super::read_operand(); } @@ -130,7 +130,7 @@ inline UINT8 konami_cpu_device::read_operand() // read_operand //------------------------------------------------- -inline UINT8 konami_cpu_device::read_operand(int ordinal) +inline uint8_t konami_cpu_device::read_operand(int ordinal) { switch(m_addressing_mode) { @@ -146,7 +146,7 @@ inline UINT8 konami_cpu_device::read_operand(int ordinal) // write_operand //------------------------------------------------- -inline void konami_cpu_device::write_operand(UINT8 data) +inline void konami_cpu_device::write_operand(uint8_t data) { super::write_operand(data); } @@ -157,7 +157,7 @@ inline void konami_cpu_device::write_operand(UINT8 data) // write_operand //------------------------------------------------- -inline void konami_cpu_device::write_operand(int ordinal, UINT8 data) +inline void konami_cpu_device::write_operand(int ordinal, uint8_t data) { switch(m_addressing_mode) { @@ -173,7 +173,7 @@ inline void konami_cpu_device::write_operand(int ordinal, UINT8 data) // ireg //------------------------------------------------- -inline UINT16 &konami_cpu_device::ireg() +inline uint16_t &konami_cpu_device::ireg() { switch(m_opcode & 0x70) { @@ -194,7 +194,7 @@ inline UINT16 &konami_cpu_device::ireg() // read_exgtfr_register //------------------------------------------------- -inline m6809_base_device::exgtfr_register konami_cpu_device::read_exgtfr_register(UINT8 reg) +inline m6809_base_device::exgtfr_register konami_cpu_device::read_exgtfr_register(uint8_t reg) { exgtfr_register result; result.word_value = 0x00FF; @@ -208,7 +208,7 @@ inline m6809_base_device::exgtfr_register konami_cpu_device::read_exgtfr_registe case 4: result.word_value = m_s.w; break; // S case 5: result.word_value = m_u.w; break; // U } - result.byte_value = (UINT8) result.word_value; + result.byte_value = (uint8_t) result.word_value; return result; } @@ -217,7 +217,7 @@ inline m6809_base_device::exgtfr_register konami_cpu_device::read_exgtfr_registe // write_exgtfr_register //------------------------------------------------- -inline void konami_cpu_device::write_exgtfr_register(UINT8 reg, m6809_base_device::exgtfr_register value) +inline void konami_cpu_device::write_exgtfr_register(uint8_t reg, m6809_base_device::exgtfr_register value) { switch(reg & 0x07) { @@ -235,7 +235,7 @@ inline void konami_cpu_device::write_exgtfr_register(UINT8 reg, m6809_base_devic // safe_shift_right //------------------------------------------------- -template<class T> T konami_cpu_device::safe_shift_right(T value, UINT32 shift) +template<class T> T konami_cpu_device::safe_shift_right(T value, uint32_t shift) { T result; @@ -254,7 +254,7 @@ template<class T> T konami_cpu_device::safe_shift_right(T value, UINT32 shift) // safe_shift_right_unsigned //------------------------------------------------- -template<class T> T konami_cpu_device::safe_shift_right_unsigned(T value, UINT32 shift) +template<class T> T konami_cpu_device::safe_shift_right_unsigned(T value, uint32_t shift) { T result; @@ -270,7 +270,7 @@ template<class T> T konami_cpu_device::safe_shift_right_unsigned(T value, UINT32 // safe_shift_left //------------------------------------------------- -template<class T> T konami_cpu_device::safe_shift_left(T value, UINT32 shift) +template<class T> T konami_cpu_device::safe_shift_left(T value, uint32_t shift) { T result; @@ -292,14 +292,14 @@ inline void konami_cpu_device::lmul() PAIR result; // do the multiply - result.d = (UINT32)m_x.w * m_y.w; + result.d = (uint32_t)m_x.w * m_y.w; // set the result registers m_x.w = result.w.h; m_y.w = result.w.l; // set Z flag - set_flags<UINT32>(CC_Z, result.d); + set_flags<uint32_t>(CC_Z, result.d); // set C flag if (result.d & 0x8000) @@ -315,8 +315,8 @@ inline void konami_cpu_device::lmul() inline void konami_cpu_device::divx() { - UINT16 result; - UINT8 remainder; + uint16_t result; + uint8_t remainder; if (m_q.r.b != 0) { @@ -331,7 +331,7 @@ inline void konami_cpu_device::divx() } // set results and Z flag - m_x.w = set_flags<UINT16>(CC_Z, result); + m_x.w = set_flags<uint16_t>(CC_Z, result); m_q.r.b = remainder; // set C flag @@ -346,7 +346,7 @@ inline void konami_cpu_device::divx() // set_lines //------------------------------------------------- -void konami_cpu_device::set_lines(UINT8 data) +void konami_cpu_device::set_lines(uint8_t data) { if (!m_set_lines.isnull()) m_set_lines((offs_t)0, data); |