vga segment define

This commit is contained in:
pantonshire committed 2024-07-24 20:59:29 +01:00
1 parent 62638cf6f5
commit a7b35d7302
2 files changed
+5 -3

No files matched your search

+3 -3
View File
@@ -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]
+2
View File
@@ -12,6 +12,8 @@
%define EBDA_START 0x080000 %define EBDA_START 0x080000
%define VGA_SEG 0xb800
%define BOOT1_MAGIC 0x544e4150 %define BOOT1_MAGIC 0x544e4150
%define VGA_WIDTH 80 %define VGA_WIDTH 80