summaryrefslogtreecommitdiff
path: root/opcodes.inc.m4
diff options
context:
space:
mode:
authorAstrid Smith2010-11-12 23:05:58 -0800
committerAstrid Smith2010-11-12 23:05:58 -0800
commit6ce50a2a554ae7997d77dfff5ea3c82d27b65719 (patch)
treed8e79b9944a7f1e042bf4fe5d9a711907d842ba5 /opcodes.inc.m4
parentf335ec9611dee3d8ec350168728f97444031636e (diff)
Changed the m4 quotes to be guillemets, which are less likely to get in the way
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