Page 1 of 1
increase memory for real-mode code
Posted: Mon Sep 27, 2021 9:55 am
by Timofeyka
Greetings!
I would like to know if it is possible to somehow increase the amount of memory for the code (real mode), not limited to one sector?
thank you in advance.
Re: increase memory for real-mode code
Posted: Mon Sep 27, 2021 10:06 am
by Octocontrabass
Yes: load more sectors.
Re: increase memory for real-mode code
Posted: Mon Sep 27, 2021 8:11 pm
by davmac314
Hi!
You can use the BIOS Int 13h services to load additional sectors from disk into memory. See
https://en.wikipedia.org/wiki/INT_13H (or look for a proper reference). You load the required registers with the appropriate parameters (as documented, eg AH=02 is required to read sectors from disk, and other registers need to be set to specify the sector address and count), then execute "int 13h", and the BIOS will take care of it for you.