Do I have to keep changing sectors or can I load multiple

我的梦境 提交于 2020-03-03 12:55:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!