Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Clean screen and move cursor
jmp lib_end
; #########################
cnsn:
push AX
push CX
push DX
push BX
mov AH,6; clean screen
mov AL,0
mov CX,0
mov DX,184FH
mov BH,0
INT 10h
pop BX
pop DX
pop CX
pop AX
ret
; #########################
mvcr: ; move to DH & DL row & col
push AX
push BX
mov AH,2; move cursor to 0,0
mov AL,0
mov BH,0
; mov DH,0
; mov DL,0
INT 10h
pop BX
pop AX
ret
lib_end:
org 100h
use16
include 'dec_proc32.asm'
include 'lab4lib.asm'
mov dx, 7567
call wr_decimal
mov ah,0
int 16h
call cnsn
mov DH,0
mov Dl,0
call mvcr
mov ah,0
int 16h
INT 20h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.