Move cursor in Assembly Language

How to move the cursor in Assembly Language?

Solution:


Example Code:

TITLE READ WHOLE SCREEN AND COPY CONTENT INTO SAVEBUFF
.model small
.stack
.data
hi db "Hi",'$'


.code
print macro string
mov ax,0900h
mov dx,0
mov dx,offset string
int 21h
endm
;-------------------------------------------------------------------------------------------------
start:
main proc
mov ax,@data
mov ds,ax

;move cursor from where copy data will start from screen into saveBuff
mov ax,0200h
mov dx,0200h; move cursor to 3rd row of 0th column
mov bx,0; video page = 0
int 10h

print hi

mov ax,4c00h
int 21h
main endp
end start
end

No comments:

Post a Comment