Created
March 5, 2012 07:14
-
-
Save yuriihabrusiev/1977179 to your computer and use it in GitHub Desktop.
Clean screen and move cursor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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