From eeee1cb4378411175c14fb463b58d97794063afb Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 9 Apr 2008 07:31:47 +0000 Subject: 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. --- src/emu/cpu/spc700/spc700.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/emu/cpu/spc700/spc700.h') 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) -- cgit v1.2.3-70-g09d2