Code for PROGRAM TO DISPLAY HELLO WORLD ON THE CONSOLE USING ONLY ONE SEGMENT in Assembly Language
CODE SEGMENT
START: ASSUME CS:CODE,DS:data
JMP SKIP
MSG DB "HELLO WORLD"
SKIP: MOV AX,DATA
MOV DS,AX
MOV AH,09H
MOV DX,OFFSET MSG
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END START