summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/i8085/i8085cpu.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-04-09 07:31:47 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-04-09 07:31:47 +0000
commiteeee1cb4378411175c14fb463b58d97794063afb (patch)
treec60cf5c4b43311d0b604f82929108c6aa02a70da /src/emu/cpu/i8085/i8085cpu.h
parent0a3bdaa3ef7730bc5b992a7077024f706a1c5c75 (diff)
Rewrote core memory handlers as inline functions. These should be easier to
trace through in a debug build, yet should operate the same as before. Created a complete set of functions for all databus sizes (8,16,32,64) and all endiannesses. A few functions are redundant, but it is now very clear which functions to use in which scenarios. It is also now possible to rely on being able to access values of 8, 16, 32 or 64 bits via the built-in accessors without fear of crashing. Updated all cores using 8-bit handlers to explicitly call the 8-bit handlers with the appropriate endianness. Fixed a few games which were calling n-bit handlers directly to use the generic forms. In the future, this is all the access drivers will have.
Diffstat (limited to 'src/emu/cpu/i8085/i8085cpu.h')
-rw-r--r--src/emu/cpu/i8085/i8085cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cpu/i8085/i8085cpu.h b/src/emu/cpu/i8085/i8085cpu.h
index 63a6cc6eefc..d844d39383f 100644
--- a/src/emu/cpu/i8085/i8085cpu.h
+++ b/src/emu/cpu/i8085/i8085cpu.h
@@ -107,11 +107,11 @@ int q = I.AF.b.h+R; \
#define M_IN \
I.XX.d=ARG(); \
- I.AF.b.h=io_read_byte_8(I.XX.d);
+ I.AF.b.h=io_read_byte_8le(I.XX.d);
#define M_OUT \
I.XX.d=ARG(); \
- io_write_byte_8(I.XX.d,I.AF.b.h)
+ io_write_byte_8le(I.XX.d,I.AF.b.h)
#define M_DAD(R) { \
int q = I.HL.d + I.R.d; \