summaryrefslogtreecommitdiff
path: root/test/inctest.asm
blob: 95ab40ff7608a8bd5b460a02ca5a055dd3379257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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

[INC inc1.asm]

[INCLUDE inc2.asm]