summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/i8085
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/i8085')
-rw-r--r--src/emu/cpu/i8085/i8085.c4
-rw-r--r--src/emu/cpu/i8085/i8085cpu.h12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/cpu/i8085/i8085.c b/src/emu/cpu/i8085/i8085.c
index b3476e8fe6f..b3072576021 100644
--- a/src/emu/cpu/i8085/i8085.c
+++ b/src/emu/cpu/i8085/i8085.c
@@ -374,13 +374,13 @@ INLINE UINT16 ARG16(i8085_state *cpustate)
INLINE UINT8 RM(i8085_state *cpustate, UINT32 a)
{
set_status(cpustate, 0x82); // memory read
- return memory_read_byte_8le(cpustate->program, a);
+ return cpustate->program->read_byte(a);
}
INLINE void WM(i8085_state *cpustate, UINT32 a, UINT8 v)
{
set_status(cpustate, 0x00); // memory write
- memory_write_byte_8le(cpustate->program, a, v);
+ cpustate->program->write_byte(a, v);
}
diff --git a/src/emu/cpu/i8085/i8085cpu.h b/src/emu/cpu/i8085/i8085cpu.h
index 2492532a33e..a581924b578 100644
--- a/src/emu/cpu/i8085/i8085cpu.h
+++ b/src/emu/cpu/i8085/i8085cpu.h
@@ -125,24 +125,24 @@
#define M_IN \
cpustate->STATUS = 0x42; \
cpustate->WZ.d=ARG(cpustate); \
- cpustate->AF.b.h=memory_read_byte_8le(cpustate->io, cpustate->WZ.d);
+ cpustate->AF.b.h=cpustate->io->read_byte(cpustate->WZ.d);
#define M_OUT \
cpustate->STATUS = 0x10; \
cpustate->WZ.d=ARG(cpustate); \
- memory_write_byte_8le(cpustate->io, cpustate->WZ.d,cpustate->AF.b.h)
+ cpustate->io->write_byte(cpustate->WZ.d,cpustate->AF.b.h)
/* stack */
#define M_PUSH(R) { \
cpustate->STATUS = 0x04; \
- memory_write_byte_8le(cpustate->program, --cpustate->SP.w.l, cpustate->R.b.h); \
- memory_write_byte_8le(cpustate->program, --cpustate->SP.w.l, cpustate->R.b.l); \
+ cpustate->program->write_byte(--cpustate->SP.w.l, cpustate->R.b.h); \
+ cpustate->program->write_byte(--cpustate->SP.w.l, cpustate->R.b.l); \
}
#define M_POP(R) { \
cpustate->STATUS = 0x86; \
- cpustate->R.b.l = memory_read_byte_8le(cpustate->program, cpustate->SP.w.l++); \
- cpustate->R.b.h = memory_read_byte_8le(cpustate->program, cpustate->SP.w.l++); \
+ cpustate->R.b.l = cpustate->program->read_byte(cpustate->SP.w.l++); \
+ cpustate->R.b.h = cpustate->program->read_byte(cpustate->SP.w.l++); \
}
/* jumps */