From 3c802cbedc1f5e5f07afb837efcc160c11336e83 Mon Sep 17 00:00:00 2001 From: Astrid Smith Date: Sat, 22 Oct 2011 00:48:25 -0700 Subject: Now gas eats it all happily With the exception of the final binary being too large to link ... --- opcodes.inc.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opcodes.inc.m4') diff --git a/opcodes.inc.m4 b/opcodes.inc.m4 index 0ce4a17..a2fb064 100644 --- a/opcodes.inc.m4 +++ b/opcodes.inc.m4 @@ -12,6 +12,7 @@ dnl # 4. Cycles the emulator takes dnl # 5. Bytes of emulator code for this instruction dnl # define(«OPCODE»,« START +.print "Opcode $1" 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. @@ -34,7 +35,7 @@ define(«OP_CB»,« START_CB define(«local»,$«»1_cb««$1»»)dnl «emu_op_cb»$1«:» $2 - TIME $3 ifelse(«,$4», «,», «», «,$4») + TIME ifelse(«,$3», «,», «0», «$3»), ifelse(«,$4», «,», «0», «$4») undefine(«label»)dnl DONE»)dnl dnl -- cgit v1.2.3