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.
increase memory for real-mode code
-
- Member
- Posts: 5567
- Joined: Mon Mar 25, 2013 7:01 pm
Re: increase memory for real-mode code
Yes: load more sectors.
Re: increase memory for real-mode code
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.
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.