mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-25 18:10:23 +08:00
test: nasm-t -- Add insnlbl test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
8e2999b41b
commit
8958826f3f
10
travis/test/insnlbl.asm
Normal file
10
travis/test/insnlbl.asm
Normal 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
BIN
travis/test/insnlbl.bin.t
Normal file
Binary file not shown.
11
travis/test/insnlbl.json
Normal file
11
travis/test/insnlbl.json
Normal file
@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
"description": "Test instruction as label",
|
||||
"id": "insnlbl",
|
||||
"format": "bin",
|
||||
"source": "insnlbl.asm",
|
||||
"target": [
|
||||
{ "output": "insnlbl.bin" }
|
||||
]
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user