test: nasm-t -- Add insnlbl test

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-04 22:21:20 +03:00
parent 8e2999b41b
commit 8958826f3f
3 changed files with 21 additions and 0 deletions

10
travis/test/insnlbl.asm Normal file
View File

@ -0,0 +1,10 @@
;
; 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

BIN
travis/test/insnlbl.bin.t Normal file

Binary file not shown.

11
travis/test/insnlbl.json Normal file
View File

@ -0,0 +1,11 @@
[
{
"description": "Test instruction as label",
"id": "insnlbl",
"format": "bin",
"source": "insnlbl.asm",
"target": [
{ "output": "insnlbl.bin" }
]
}
]