Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Plus heap memory

This topic is 6405 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I don´t mean how to allocate. There is a limit on it, and its space is pretty short. How to expand it, using EMM or maybe EMX?
I´m using Borland C++

Thanks, Arthur(rockslave)

Share this post

Link to post
Share on other sites
You have to use interrupt call...
Check out the interrupt list for DOS. I think it''s INT 33h, but I''m not sure. You''ll have to work with pages of 16k. You need to reserve those pages, select one and then work with it with a pointer in low memory. This is not difficult, but I suggest you make a wrapper or interface to get it easy and transparent.
If you need help, I think I can found an old program I made at school, or I can give advices.

If you just want to make a console game, you may wish to use some librairies and work with 32-bit protected mode... it could let you do a malloc of say 2Mb or an array variable of 600x2000...

BTW, you can do an allocation of 300k if you want. Even in low memory (except for SMALL memory model).

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!