mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-25 18:10:23 +08:00
test: nasm-t -- Add inctest
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
8958826f3f
commit
34a3e114ae
6
travis/test/inc1.asm
Normal file
6
travis/test/inc1.asm
Normal file
@ -0,0 +1,6 @@
|
||||
; This file is part of the include test.
|
||||
; See inctest.asm for build instructions.
|
||||
|
||||
message: db 'hello, world',13,10,'$'
|
||||
|
||||
%include "inc2.asm"
|
8
travis/test/inc2.asm
Normal file
8
travis/test/inc2.asm
Normal file
@ -0,0 +1,8 @@
|
||||
; This file is part of the include test.
|
||||
; See inctest.asm for build instructions.
|
||||
|
||||
_main: mov dx,message
|
||||
mov ah,9
|
||||
int 21h
|
||||
mov ax,4c00h
|
||||
int 21h
|
13
travis/test/inctest.asm
Normal file
13
travis/test/inctest.asm
Normal file
@ -0,0 +1,13 @@
|
||||
; This file, plus inc1.asm and inc2.asm, test NASM's file inclusion
|
||||
; mechanism.
|
||||
;
|
||||
; This produces a DOS .COM file: to assemble, use
|
||||
; nasm -f bin inctest.asm -o inctest.com
|
||||
; and when run, it should print `hello, world'.
|
||||
|
||||
BITS 16
|
||||
ORG 0x100
|
||||
|
||||
jmp _main
|
||||
|
||||
%include "inc1.asm"
|
BIN
travis/test/inctest.com.t
Normal file
BIN
travis/test/inctest.com.t
Normal file
Binary file not shown.
12
travis/test/inctest.json
Normal file
12
travis/test/inctest.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"description": "Test include directive",
|
||||
"id": "inctest",
|
||||
"format": "bin",
|
||||
"source": "inctest.asm",
|
||||
"option": "-i./travis/test/",
|
||||
"target": [
|
||||
{ "output": "inctest.com" }
|
||||
]
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user