summaryrefslogtreecommitdiff
path: root/opcodes.inc.m4
diff options
context:
space:
mode:
authorAstrid Smith2011-06-24 22:24:54 -0700
committerAstrid Smith2011-06-24 22:24:54 -0700
commit8180013ecccbb1eff2ff3f93621309225a285dba (patch)
treeb40040ebd8defe7fdaaa859b9b15047b66f40cc6 /opcodes.inc.m4
parentc22fdfeff0c15cfd1324aeadf89fa16c89be21a8 (diff)
I spent the afternoon counting cycles.
Diffstat (limited to 'opcodes.inc.m4')
-rw-r--r--opcodes.inc.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/opcodes.inc.m4 b/opcodes.inc.m4
index b4c35b6..51763a4 100644
--- a/opcodes.inc.m4
+++ b/opcodes.inc.m4
@@ -3,6 +3,14 @@ dnl # confusion.
changecom(;)dnl
dnl # I'm using these, in this direction, specifically to confuse Germans.
changequote(`«', `»')dnl
+dnl #
+dnl # OPCODE takes up to five arguments:
+dnl # 1. Instruction opcode
+dnl # 2. 68k code
+dnl # 3. Tstates for the native instruction
+dnl # 4. Cycles the emulator takes
+dnl # 5. Bytes of emulator code for this instruction
+dnl #
define(«OPCODE»,« START
dnl # This little bit of trickery lets me define a local label.
dnl # Calling local(end) inside of OPCODE(10, ...) will expand to