summaryrefslogtreecommitdiff
path: root/opcodes.inc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes.inc.m4')
-rw-r--r--opcodes.inc.m416
1 files changed, 9 insertions, 7 deletions
diff --git a/opcodes.inc.m4 b/opcodes.inc.m4
index 70ffb2c..4d9a81c 100644
--- a/opcodes.inc.m4
+++ b/opcodes.inc.m4
@@ -1,13 +1,15 @@
dnl # change the comments to match the assembler. Prevents/reduces
-dnl # confusion, since m4 likes to use ' as a quoting character.
+dnl # confusion.
changecom(;)dnl
-define(`OPCODE',` START
+dnl # I'm using these, in this direction, specifically to confuse Germans.
+changequote(`«', `»')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
dnl # end_10, and is undefined everywhere else.
-define(`local',$`'1_``$1'')dnl
-`emu_op_'$1`:'
+define(«local»,$«»1_««$1»»)dnl
+«emu_op_»$1«:»
$2
- TIME $3 ifelse(`, $4', `, ', `', `, $4')
-undefine(`label')dnl
- DONE')dnl
+ TIME $3 ifelse(«,$4», «,», «», «,$4»)
+undefine(«label»)dnl
+ DONE»)dnl