test/inctest.asm
raw| 1 | ;Testname=test; Arguments=-fbin -oinctest.com; Files=stdout stderr inctest.com |
| 2 | |
| 3 | ; This file, plus inc1.asm and inc2.asm, test NASM's file inclusion |
| 4 | ; mechanism. |
| 5 | ; |
| 6 | ; This produces a DOS .COM file: to assemble, use |
| 7 | ; nasm -f bin inctest.asm -o inctest.com |
| 8 | ; and when run, it should print `hello, world'. |
| 9 | |
| 10 | BITS 16 |
| 11 | ORG 0x100 |
| 12 | |
| 13 | jmp _main |
| 14 | |
| 15 | %include "inc1.asm" |