Skip to content
Snippets Groups Projects
config.asm 230 B
Newer Older
SECTION .text
USE16

align 512, db 0

config:
Jeremy Soller's avatar
Jeremy Soller committed
  .xres: dw 1024
  .yres: dw 768

times 512 - ($ - config) db 0

save_config:
    mov eax, (config - boot) / 512
    mov bx, config
    mov cx, 1
    xor dx, dx
    call store
    ret