From 4804bf28ea629e72db6aea6b37fac0337eb5b32d Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Thu, 23 Apr 2020 21:36:20 +0200 Subject: [PATCH] Place variables into area after binary --- boot/kernel.asm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/boot/kernel.asm b/boot/kernel.asm index 4f5fd03..7b82cf0 100644 --- a/boot/kernel.asm +++ b/boot/kernel.asm @@ -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 +