Allow x and y resolution to be saved
This commit is contained in:
parent
03db207100
commit
64cfe68046
1 changed files with 101 additions and 18 deletions
18
bootloader/x86_64/config.asm
Normal file
18
bootloader/x86_64/config.asm
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
SECTION .text
|
||||
USE16
|
||||
|
||||
align 512, db 0
|
||||
|
||||
config:
|
||||
.xres: dw 0
|
||||
.yres: dw 0
|
||||
|
||||
times 512 - ($ - config) db 0
|
||||
|
||||
save_config:
|
||||
mov eax, (config - boot) / 512
|
||||
mov bx, config
|
||||
mov cx, 1
|
||||
xor dx, dx
|
||||
call store
|
||||
ret
|
||||
Loading…
Reference in a new issue