Could not assemble hello.asm
Posted on 2003-02-23
i got this .asm file "hello.asm":
msg: db 'Hello, Dear World$'
segment sseg stack
mov ax, dseg
mov ds, ax
mov dx, msg
mov ah, 0x09
mov ah, 0x4C
the problem is that i was unable to properly compile it with NASM, im pretty sure there is nothing wrong with the code, its just that i couldn't figure how to use NASM
it yields this:
hello.asm:1: segment name `dseg' not recognised
hello.asm:4: segment name `sseg' not recognised
hello.asm:7: segment name `cseg' not recognised
hello.asm:8: unrecognised special symbol `..start'