increase memory for real-mode code

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Timofeyka
Posts: 4
Joined: Sat Aug 07, 2021 6:46 am
Contact:

increase memory for real-mode code

Post 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.
Octocontrabass
Member
Member
Posts: 5567
Joined: Mon Mar 25, 2013 7:01 pm

Re: increase memory for real-mode code

Post by Octocontrabass »

Yes: load more sectors.
davmac314
Member
Member
Posts: 121
Joined: Mon Jul 05, 2021 6:57 pm

Re: increase memory for real-mode code

Post 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.
Post Reply