Hi all,
I want to display my string at a certain position on the screen. But with my coding, it displays weird ASCII characters at position 0,0 instead of "Please Enter Input...etc." onto the screen. Please help.
.data
MESSAGE1 DB "Please Enter Input Filename: ", 0
.code
org 100h
MOV AX, 0B800h
MOV ES, AX
MOV AH, 07h
MOV DI, 0
MOV BX, 0
MOV CX, 29
DISPLAY:
MOV AL, MESSAGE1[BX]
MOV ES:[DI], AX
JZ THEEND
INC BX
ADD DI, 2
LOOP DISPLAY
THEEND:
INT 20h
I want to display my string at a certain position on the screen. But with my coding, it displays weird ASCII characters at position 0,0 instead of "Please Enter Input...etc." onto the screen. Please help.
.data
MESSAGE1 DB "Please Enter Input Filename: ", 0
.code
org 100h
MOV AX, 0B800h
MOV ES, AX
MOV AH, 07h
MOV DI, 0
MOV BX, 0
MOV CX, 29
DISPLAY:
MOV AL, MESSAGE1[BX]
MOV ES:[DI], AX
JZ THEEND
INC BX
ADD DI, 2
LOOP DISPLAY
THEEND:
INT 20h