summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/i8085/i8085.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/i8085/i8085.cpp')
-rw-r--r--src/devices/cpu/i8085/i8085.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/devices/cpu/i8085/i8085.cpp b/src/devices/cpu/i8085/i8085.cpp
index 5fc63d50987..b28ebab7380 100644
--- a/src/devices/cpu/i8085/i8085.cpp
+++ b/src/devices/cpu/i8085/i8085.cpp
@@ -128,7 +128,7 @@
***************************************************************************/
/* cycles lookup */
-const UINT8 i8085a_cpu_device::lut_cycles_8080[256]={
+const uint8_t i8085a_cpu_device::lut_cycles_8080[256]={
/* 0 1 2 3 4 5 6 7 8 9 A B C D E F */
/* 0 */ 4, 10,7, 5, 5, 5, 7, 4, 4, 10,7, 5, 5, 5, 7, 4,
/* 1 */ 4, 10,7, 5, 5, 5, 7, 4, 4, 10,7, 5, 5, 5, 7, 4,
@@ -146,7 +146,7 @@ const UINT8 i8085a_cpu_device::lut_cycles_8080[256]={
/* D */ 5, 10,10,10,11,11,7, 11,5, 10,10,10,11,11,7, 11,
/* E */ 5, 10,10,18,11,11,7, 11,5, 5, 10,5, 11,11,7, 11,
/* F */ 5, 10,10,4, 11,11,7, 11,5, 5, 10,4, 11,11,7, 11 };
-const UINT8 i8085a_cpu_device::lut_cycles_8085[256]={
+const uint8_t i8085a_cpu_device::lut_cycles_8085[256]={
/* 0 1 2 3 4 5 6 7 8 9 A B C D E F */
/* 0 */ 4, 10,7, 6, 4, 4, 7, 4, 10,10,7, 6, 4, 4, 7, 4,
/* 1 */ 7, 10,7, 6, 4, 4, 7, 4, 10,10,7, 6, 4, 4, 7, 4,
@@ -182,7 +182,7 @@ const device_type I8080A = &device_creator<i8080a_cpu_device>;
const device_type I8085A = &device_creator<i8085a_cpu_device>;
-i8085a_cpu_device::i8085a_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+i8085a_cpu_device::i8085a_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: cpu_device(mconfig, I8085A, "8085A", tag, owner, clock, "i8085a", __FILE__)
, m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0)
, m_io_config("io", ENDIANNESS_LITTLE, 8, 8, 0)
@@ -195,7 +195,7 @@ i8085a_cpu_device::i8085a_cpu_device(const machine_config &mconfig, const char *
}
-i8085a_cpu_device::i8085a_cpu_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int cputype)
+i8085a_cpu_device::i8085a_cpu_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, int cputype)
: cpu_device(mconfig, type, name, tag, owner, clock, shortname, source)
, m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0)
, m_io_config("io", ENDIANNESS_LITTLE, 8, 8, 0)
@@ -208,13 +208,13 @@ i8085a_cpu_device::i8085a_cpu_device(const machine_config &mconfig, device_type
}
-i8080_cpu_device::i8080_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+i8080_cpu_device::i8080_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: i8085a_cpu_device(mconfig, I8080, "8080", tag, owner, clock, "i8080", __FILE__, CPUTYPE_8080)
{
}
-i8080a_cpu_device::i8080a_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+i8080a_cpu_device::i8080a_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: i8085a_cpu_device(mconfig, I8080A, "8080A", tag, owner, clock, "i8080a", __FILE__, CPUTYPE_8080)
{
}
@@ -250,7 +250,7 @@ void i8085a_cpu_device::set_inte(int state)
}
-void i8085a_cpu_device::set_status(UINT8 status)
+void i8085a_cpu_device::set_status(uint8_t status)
{
if (status != m_STATUS)
m_out_status_func(status);
@@ -259,9 +259,9 @@ void i8085a_cpu_device::set_status(UINT8 status)
}
-UINT8 i8085a_cpu_device::get_rim_value()
+uint8_t i8085a_cpu_device::get_rim_value()
{
- UINT8 result = m_IM;
+ uint8_t result = m_IM;
int sid = m_in_sid_func();
/* copy live RST5.5 and RST6.5 states */
@@ -290,20 +290,20 @@ void i8085a_cpu_device::break_halt_for_interrupt()
}
-UINT8 i8085a_cpu_device::ROP()
+uint8_t i8085a_cpu_device::ROP()
{
set_status(0xa2); // instruction fetch
return m_direct->read_byte(m_PC.w.l++);
}
-UINT8 i8085a_cpu_device::ARG()
+uint8_t i8085a_cpu_device::ARG()
{
return m_direct->read_byte(m_PC.w.l++);
}
-UINT16 i8085a_cpu_device::ARG16()
+uint16_t i8085a_cpu_device::ARG16()
{
- UINT16 w;
+ uint16_t w;
w = m_direct->read_byte(m_PC.d);
m_PC.w.l++;
w += m_direct->read_byte(m_PC.d) << 8;
@@ -311,13 +311,13 @@ UINT16 i8085a_cpu_device::ARG16()
return w;
}
-UINT8 i8085a_cpu_device::RM(UINT32 a)
+uint8_t i8085a_cpu_device::RM(uint32_t a)
{
set_status(0x82); // memory read
return m_program->read_byte(a);
}
-void i8085a_cpu_device::WM(UINT32 a, UINT8 v)
+void i8085a_cpu_device::WM(uint32_t a, uint8_t v)
{
set_status(0x00); // memory write
m_program->write_byte(a, v);
@@ -395,7 +395,7 @@ void i8085a_cpu_device::check_for_interrupts()
/* followed by classic INTR */
else if (m_irq_state[I8085_INTR_LINE] && (m_IM & IM_IE))
{
- UINT32 vector;
+ uint32_t vector;
/* break out of HALT state and call the IRQ ack callback */
break_halt_for_interrupt();
@@ -872,7 +872,7 @@ void i8085a_cpu_device::execute_run()
void i8085a_cpu_device::init_tables()
{
- UINT8 zs;
+ uint8_t zs;
int i, p;
for (i = 0; i < 256; i++)
{
@@ -1094,7 +1094,7 @@ void i8085a_cpu_device::execute_set_input(int irqline, int state)
}
-offs_t i8085a_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
+offs_t i8085a_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
{
extern CPU_DISASSEMBLE( i8085 );
return CPU_DISASSEMBLE_NAME(i8085)(this, buffer, pc, oprom, opram, options);