Place variables into area after binary

This commit is contained in:
Nero 2020-04-23 21:36:20 +02:00
parent 3619a20703
commit 4804bf28ea

View File

@ -154,13 +154,6 @@ getint: xor bx, bx
sferr: stc
ret
bpb: times bpb_len db 0
drvnum: db 0
align 4
drvoff: dd 0 ; partition offset
drvpos: dd 0 ; absolute physical sector number
buffer: times 512 db 0
; Convert between drive number and BIOS dl
; Bidirectional mapping
; 0 <-> 0, 1 <-> 1, 2 <-> 0x80, 3 <-> 0x81
@ -300,3 +293,12 @@ ivects: dw int20h, int21h, iret, iret
dw iret, iret, iret, iret
dw idle, fputc, iret, iret
dw iret, iret, iret, iret
section .bss
bpb: times bpb_len resb 0
drvnum: resb 0
align 4
drvoff: resd 0 ; partition offset
drvpos: resd 0 ; absolute physical sector number
buffer: times 512 resb 0