test: nasm-t -- Add inctest

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-04 22:24:33 +03:00
parent 8958826f3f
commit 34a3e114ae
5 changed files with 39 additions and 0 deletions

6
travis/test/inc1.asm Normal file
View 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
View 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
View 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

Binary file not shown.

12
travis/test/inctest.json Normal file
View File

@ -0,0 +1,12 @@
[
{
"description": "Test include directive",
"id": "inctest",
"format": "bin",
"source": "inctest.asm",
"option": "-i./travis/test/",
"target": [
{ "output": "inctest.com" }
]
}
]