summaryrefslogtreecommitdiff
path: root/test/insnlbl.asm
blob: e45637231a858df5b9fae9ca52bce3320c8db59c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
;Testname=test; Arguments=-fbin -oinsnlbl.bin; Files=stdout stderr insnlbl.bin

;
; Test "instruction as label" -- make opcodes legal as labels if
; they are followed by a colon.
;

do:	jmp dq+2
	dw do, add, sub, dq
add:	jmp add-2
sub:	jmp do+2
dq:	dw $-sub