summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/g65816/g65816.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/g65816/g65816.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/g65816/g65816.h')
-rw-r--r--src/emu/cpu/g65816/g65816.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/g65816/g65816.h b/src/emu/cpu/g65816/g65816.h
index 2c76f18d781..2b0fd6b8ca5 100644
--- a/src/emu/cpu/g65816/g65816.h
+++ b/src/emu/cpu/g65816/g65816.h
@@ -91,9 +91,9 @@ void g65816_get_info(UINT32 state, cpuinfo *info);
#undef G65816_CALL_DEBUGGER
#define G65816_CALL_DEBUGGER CALL_DEBUGGER
-#define g65816_read_8(addr) program_read_byte_8(addr)
-#define g65816_write_8(addr,data) program_write_byte_8(addr,data)
-#define g65816_read_8_immediate(A) program_read_byte_8(A)
+#define g65816_read_8(addr) program_read_byte_8be(addr)
+#define g65816_write_8(addr,data) program_write_byte_8be(addr,data)
+#define g65816_read_8_immediate(A) program_read_byte_8be(A)
#define g65816_jumping(A) change_pc(A)
#define g65816_branching(A)