summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/sc61860
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-11-17 18:33:10 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-11-17 18:33:10 +0000
commite7c418ef0fccb0c316f8afef4b87e347141a474d (patch)
tree3c10861632813ef91fc9bb435fda216053b489d8 /src/emu/cpu/sc61860
parentcd6f509841d892d4d195aad6c2a7b05b45f55f78 (diff)
Generalized the concept of opbase access into "direct" access.
Removed opbase globals to the address_space structure. Cleaned up names of pointers (decrypted and raw versus rom and ram). Added inline functions to read/write data via any address space. Added macros for existing functions to point them to the new functions. Other related cleanups.
Diffstat (limited to 'src/emu/cpu/sc61860')
-rw-r--r--src/emu/cpu/sc61860/sc.h2
-rw-r--r--src/emu/cpu/sc61860/scops.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/cpu/sc61860/sc.h b/src/emu/cpu/sc61860/sc.h
index 1b00af1c65b..61f55e331c9 100644
--- a/src/emu/cpu/sc61860/sc.h
+++ b/src/emu/cpu/sc61860/sc.h
@@ -31,4 +31,4 @@ enum
// SC61860_IRQ_STATE
};
-#define PEEK_OP(pc) cpu_readop(pc)
+#define PEEK_OP(pc) program_decrypted_read_byte(pc)
diff --git a/src/emu/cpu/sc61860/scops.c b/src/emu/cpu/sc61860/scops.c
index 7ae3b5e1237..9c0670b23cc 100644
--- a/src/emu/cpu/sc61860/scops.c
+++ b/src/emu/cpu/sc61860/scops.c
@@ -28,18 +28,18 @@
INLINE UINT8 READ_OP(void)
{
- return cpu_readop(sc61860.pc++);
+ return program_decrypted_read_byte(sc61860.pc++);
}
INLINE UINT8 READ_OP_ARG(void)
{
- return cpu_readop_arg(sc61860.pc++);
+ return program_raw_read_byte(sc61860.pc++);
}
INLINE UINT16 READ_OP_ARG_WORD(void)
{
- UINT16 t=cpu_readop(sc61860.pc++)<<8;
- t|=cpu_readop(sc61860.pc++);
+ UINT16 t=program_decrypted_read_byte(sc61860.pc++)<<8;
+ t|=program_decrypted_read_byte(sc61860.pc++);
return t;
}