-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraphics.asm
More file actions
46 lines (40 loc) · 651 Bytes
/
Copy pathgraphics.asm
File metadata and controls
46 lines (40 loc) · 651 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
clear_the_screen:
mov ah , 00
mov al, 02
int 0x10
call set_graphic_mode
mov bl ,0001
call set_background_color
ret
; bl color
set_background_color:
mov ah,0Bh
mov bh ,00h
int 0x10
ret
; AH=02h BH = Page Number, DH = Row, DL = Column
set_cursor_pos:
mov ah,02h
mov bh , 0
int 0x10
ret
;OUTPUT DH = row and Dl = col
get_cursor_pos:
mov aH,03h
mov bh , 0
int 0x10
mov al,DH
ret
set_graphic_mode:
mov ah , 00h
mov al , 13h
int 10h
ret
; al color
; CX x
; DX y
write_pixel:
mov AH , 0Ch
mov AL , 0fh
mov bh , 0x00
int 10h