Skip to content

Instantly share code, notes, and snippets.

@yuriihabrusiev
Created March 5, 2012 07:14
Show Gist options
  • Save yuriihabrusiev/1977179 to your computer and use it in GitHub Desktop.
Save yuriihabrusiev/1977179 to your computer and use it in GitHub Desktop.
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