summaryrefslogtreecommitdiff
path: root/opcodes.inc.m4
blob: 4d9a81c4fd2019c62f890bb56ba3c1f2a8d9fc73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
dnl # change the comments to match the assembler.  Prevents/reduces
dnl # confusion.
changecom(;)dnl
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«:»
$2
	TIME	$3 ifelse(«,$4»,  «,»,  «»,  «,$4»)
undefine(«label»)dnl
	DONE»)dnl