Allow x and y resolution to be saved

This commit is contained in:
Jeremy Soller 2016-10-18 17:04:06 -06:00
commit 64cfe68046

View 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