summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/spc700/spc700.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/spc700/spc700.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/spc700/spc700.h')
-rw-r--r--src/emu/cpu/spc700/spc700.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/spc700/spc700.h b/src/emu/cpu/spc700/spc700.h
index e821bf63e3c..3b25c083b05 100644
--- a/src/emu/cpu/spc700/spc700.h
+++ b/src/emu/cpu/spc700/spc700.h
@@ -130,15 +130,15 @@ void spc700_branching(unsigned int new_pc);
extern void spc700_get_info(UINT32 state, cpuinfo *info);
-#define spc700_read_8(addr) program_read_byte_8(addr)
-#define spc700_write_8(addr,data) program_write_byte_8(addr,data)
+#define spc700_read_8(addr) program_read_byte_8le(addr)
+#define spc700_write_8(addr,data) program_write_byte_8le(addr,data)
#define spc700_read_8_direct(A) spc700_read_8(A)
#define spc700_write_8_direct(A, V) spc700_write_8(A, V)
//#define spc700_read_instruction(A) cpu_readop(A)
//#define spc700_read_8_immediate(A) cpu_readop_arg(A)
-#define spc700_read_instruction(A) program_read_byte_8(A)
-#define spc700_read_8_immediate(A) program_read_byte_8(A)
+#define spc700_read_instruction(A) program_read_byte_8le(A)
+#define spc700_read_8_immediate(A) program_read_byte_8le(A)
#define spc700_jumping(A) change_pc(A)
#define spc700_branching(A) change_pc(A)