vga segment define
This commit is contained in:
1 parent
62638cf6f5
commit
a7b35d7302
2 files changed
+5
-3
No files matched your search
@@ -382,7 +382,7 @@ vga_clear:
|
|||||||
push ax
|
push ax
|
||||||
push cx
|
push cx
|
||||||
|
|
||||||
mov ax, 0xb800
|
mov ax, VGA_SEG
|
||||||
mov es, ax
|
mov es, ax
|
||||||
mov ax, [GLOBALS + VGA_COL]
|
mov ax, [GLOBALS + VGA_COL]
|
||||||
mov cx, VGA_WIDTH * VGA_HEIGHT
|
mov cx, VGA_WIDTH * VGA_HEIGHT
|
||||||
@@ -410,7 +410,7 @@ vga_scroll:
|
|||||||
push es
|
push es
|
||||||
push ds
|
push ds
|
||||||
|
|
||||||
mov ax, 0xb800
|
mov ax, VGA_SEG
|
||||||
mov ds, ax
|
mov ds, ax
|
||||||
mov es, ax
|
mov es, ax
|
||||||
|
|
||||||
@@ -475,7 +475,7 @@ vga_print_raw:
|
|||||||
mov di, cx
|
mov di, cx
|
||||||
shl di, 1
|
shl di, 1
|
||||||
|
|
||||||
mov ax, 0xb800
|
mov ax, VGA_SEG
|
||||||
mov fs, ax
|
mov fs, ax
|
||||||
mov ah, [GLOBALS + VGA_COL + 1]
|
mov ah, [GLOBALS + VGA_COL + 1]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user