;A program to display the message, "ASSEMBLY LANGUAGE PROGRAM" on the screen.
;MODEL MEDIUM
;STACK
Datasg SEGMENT; Beginning of data segment
message DB "ASSEMBLY LANGUAGE PROGRAMMING"
Datasg ENDs; End of data segment
Dispsg SEGMENT; Beginning of code segment
ASSUME CS:Dispsg, DS:Datasg
ORG 100h
john: MOV AH,09h; 9 is function value to display string
MOV BX,Datasg; Initialise the start segment
MOV DS, BX
LEA BX,message; Load effective address in BX register
INT 21h
MOV AH,4ch
Dispsg ENDs
END start
Please can somebody help me correct this code because am a newbie, the code is not displaying what it suppose to display.
Regards
Paul