summaryrefslogtreecommitdiff
path: root/opcodes.inc.m4
diff options
context:
space:
mode:
authorAstrid Smith2011-06-26 01:12:30 -0700
committerAstrid Smith2011-06-26 01:12:30 -0700
commitf6ebaf29e8b1a545dc2168426fea15cfb9593c83 (patch)
tree31e122a76c5fab19790673b7fc467d5a8d0d3ff7 /opcodes.inc.m4
parentfc3103b47fad14847704d27705a64fb6ad5b430e (diff)
Working on interleaving the various instructions together. Does presently no longer build.
Diffstat (limited to 'opcodes.inc.m4')
-rw-r--r--opcodes.inc.m466
1 files changed, 66 insertions, 0 deletions
diff --git a/opcodes.inc.m4 b/opcodes.inc.m4
index 51763a4..8757bb1 100644
--- a/opcodes.inc.m4
+++ b/opcodes.inc.m4
@@ -22,4 +22,70 @@ $2
undefine(«label»)dnl
DONE»)dnl
dnl
+define(«OP_DD»,« START_DD
+dnl # This little bit of trickery lets me define a local label.
+dnl # Calling local(end) inside of OPCODE(10, ...) will expand to
+dnl # end_10, and is undefined everywhere else.
+define(«local»,$«»1_««$1»»)dnl
+«emu_op_dd»$1«:»
+$2
+ TIME $3 ifelse(«,$4», «,», «», «,$4»)
+undefine(«label»)dnl
+ DONE»)dnl
+dnl
+define(«OP_CB»,« START_CB
+dnl # This little bit of trickery lets me define a local label.
+dnl # Calling local(end) inside of OPCODE(10, ...) will expand to
+dnl # end_10, and is undefined everywhere else.
+define(«local»,$«»1_««$1»»)dnl
+«emu_op_cb»$1«:»
+$2
+ TIME $3 ifelse(«,$4», «,», «», «,$4»)
+undefine(«label»)dnl
+ DONE»)dnl
+dnl
+define(«OP_DDCB»,« START_DDCB
+dnl # This little bit of trickery lets me define a local label.
+dnl # Calling local(end) inside of OPCODE(10, ...) will expand to
+dnl # end_10, and is undefined everywhere else.
+define(«local»,$«»1_««$1»»)dnl
+«emu_op_ddcb»$1«:»
+$2
+ TIME $3 ifelse(«,$4», «,», «», «,$4»)
+undefine(«label»)dnl
+ DONE»)dnl
+dnl
+define(«OP_FD»,« START_FD
+dnl # This little bit of trickery lets me define a local label.
+dnl # Calling local(end) inside of OPCODE(10, ...) will expand to
+dnl # end_10, and is undefined everywhere else.
+define(«local»,$«»1_««$1»»)dnl
+«emu_op_fd»$1«:»
+$2
+ TIME $3 ifelse(«,$4», «,», «», «,$4»)
+undefine(«label»)dnl
+ DONE»)dnl
+dnl
+define(«OP_FDCB»,« START_FDCB
+dnl # This little bit of trickery lets me define a local label.
+dnl # Calling local(end) inside of OPCODE(10, ...) will expand to
+dnl # end_10, and is undefined everywhere else.
+define(«local»,$«»1_««$1»»)dnl
+«emu_op_fdcb»$1«:»
+$2
+ TIME $3 ifelse(«,$4», «,», «», «,$4»)
+undefine(«label»)dnl
+ DONE»)dnl
+dnl
+define(«OP_ED»,« START_ED
+dnl # This little bit of trickery lets me define a local label.
+dnl # Calling local(end) inside of OPCODE(10, ...) will expand to
+dnl # end_10, and is undefined everywhere else.
+define(«local»,$«»1_««$1»»)dnl
+«emu_op_ed»$1«:»
+$2
+ TIME $3 ifelse(«,$4», «,», «», «,$4»)
+undefine(«label»)dnl
+ DONE»)dnl
+dnl
define(«INT_OFFSET», 4)dnl