OSDev.org
https://forum.osdev.org/

increase memory for real-mode code
https://forum.osdev.org/viewtopic.php?f=1&t=54792
Page 1 of 1

Author:  Timofeyka [ Mon Sep 27, 2021 9:55 am ]
Post subject:  increase memory for real-mode code

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.

Author:  Octocontrabass [ Mon Sep 27, 2021 10:06 am ]
Post subject:  Re: increase memory for real-mode code

Yes: load more sectors.

Author:  davmac314 [ Mon Sep 27, 2021 8:11 pm ]
Post subject:  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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/