问题
So I finally found an example on how to leave the first sector so I can continue to load code.
- Do I have to keep changing sectors every time I use 512 bytes?
- Can I load multiple sectors at once, aka all of them? and if so is there a limit to how many sectors I can load at once?
I'm calling this to load the next sector
load_sector1:
xor ah, ah
int 0x13
clc
mov bx, 0x07E0
mov es, bx
xor bx, bx
mov ah, 0x02
mov al, 0x1
mov ch, 0x0
mov cl, 0x2 ; Sector
mov dh, 0x0
int 0x13
jmp 0x0:0x7E00
If I can load multiple sectors, would I just repeat my code but change the sector number or would I have to do something entirely different?
来源:https://stackoverflow.com/questions/46373623/do-i-have-to-keep-changing-sectors-or-can-i-load-multiple