OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:05 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: increase memory for real-mode code
PostPosted: Mon Sep 27, 2021 9:55 am 
Offline

Joined: Sat Aug 07, 2021 6:46 am
Posts: 4
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.


Top
 Profile  
 
 Post subject: Re: increase memory for real-mode code
PostPosted: Mon Sep 27, 2021 10:06 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
Yes: load more sectors.


Top
 Profile  
 
 Post subject: Re: increase memory for real-mode code
PostPosted: Mon Sep 27, 2021 8:11 pm 
Offline
Member
Member

Joined: Mon Jul 05, 2021 6:57 pm
Posts: 118
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Amazonbot [bot], Bing [Bot], DotBot [Bot] and 64 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group