Been about 25 years since I’ve written anything in x86 assembler so thought it might be fun to install NASAM and write a simple ‘Hello World’
org 0x0100 ; Starting memory address for COM program
start:
mov bx,message ; Read text stored message
repeat:
mov al,[bx] ; Read next letter of message
test al,al ; Compare text character
je end ; If equal (0) then jump to end
push bx
mov ah,0x0e
mov bx,0x000f
int 0x10 ; Call BIOS interrupt to display text
pop bx
inc bx
jmp repeat ; Repeat, read next letter of message
end:
int 0x20 ; Exit application and return to DOS
message:
db "Hello, world",0 ; Text message to display