Import backup from 2005-01-14

This commit is contained in:
josh committed 2017-07-25 22:23:49 -04:00
1 parent 05183a3949
commit ba5906c7a3
6 files changed
+104 -25

No files matched your search

+3 -5
View File
@@ -34,11 +34,7 @@ start_refreshed:
call con_clear
mov ax, 0x4F00
mov di, vbe_info_block
int 0x10
cmp ax, 0x004F
jz vesa_present
; ccall vesa_get_info, es, vbe_info_block
jmp no_vesa
vesa_present:
@@ -165,3 +161,5 @@ OemVendorName: dd 0
OemProductName: dd 0
OemProductRev: dd 0
Reserved: times 478 db 0
+33
View File
@@ -0,0 +1,33 @@
; vesa.inc
; Author: Josh Holtrop
; Date: 01/04/05
; Modified: 01/04/05
; real mode vesa functions
vesa_get_info: ;vesa_get_info(word seg, word offset)
push bp
mov bp, sp
pusha
mov ax, [bp + 4]
mov es, ax
mov di, [bp + 6]
mov ax, 0x4F00
int 0x10
cmp ax, 0x004F
jz vesa_got_info
mov [vesa_return], word 1
jmp vesa_get_info_done
vesa_got_info:
mov [vesa_return], word 0
vesa_got_info_done:
popa
pop bp
mov ax, [vesa_return]
ret
vesa_return: dw 0