Display ‘Hello World’ using assembly.
Tested in emu8086 emulator. Learning: 1 2 3 4 5 6 book
.MODEL SMALL
.STACK 200H
.DATA
MSG1 DB 'Hello, World!', 0DH, 0AH, '
Screenshot
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV AH, 9
MOV DX, OFFSET MSG1
INT 21H
MOV AX, 4C00H
INT 21H
MAIN ENDP
END MAIN
Screenshot