blob: 47394303e45fd461139eccd4e26fb8097218817b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
clearScreenIntBios:
;Save registers
push ax
push bx
push cx
push dx
mov ax, 0x0600 ;Clear
mov bx, 0x0F00 ;Color black behind white foreground
mov cx, 0x0000 ;Top left corner
mov dx, 0x5050 ;Bottom right corner 80x80
int 0x10 ;Clear the screen
;Restore registers
pop dx
pop cx
pop bx
pop ax
;Reset Cursor Position
call resetCursorPosIntBios
;Back to previous task
ret
;Include resetCursorPosIntBios
%include "resetCursorPosIntBios.asm"
|