vga print helpers

This commit is contained in:
pantonshire committed 2024-07-14 19:01:15 +01:00
1 parent 592826e8cd
commit bd3063a80d
2 files changed
+229 -49

No files matched your search

+20
View File
@@ -6,6 +6,11 @@
%define EBDA_START 0x080000
%define BOOT1_MAGIC 0x544e4150
%define VGA_WIDTH 80
%define VGA_HEIGHT 25
; boot0 base stack frame variable offsets / globals
; (we use the same offsets once we copy the variables to the globals section)
; -------------------------------------------------------------------------------------------------
@@ -29,3 +34,18 @@
%define GPT_SECTORS_LOADED 0x16
%define GPT_CURRENT_LBA 0x18
%define BOOT1_GPT_ENTRY_ADDR 0x1a
; Globals
; ------------------------------------------------------------------------------------------------
%define VGA_COL 0x1c
%define TEXTBUF_LINE 0x1e
%macro fnstart 0
push bp
mov bp, sp
%endmacro
%macro fnret 0
pop bp
ret
%endmacro