Jump to content
  • Advertisement
Sign in to follow this  
g0nzo

Creating data segment in MASM for DOS

This topic is 4824 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

Hi! I'm creating simple app that crossfades 2 images in mode 13h. I have .data segment with a buffer for the first image and some variables. The problem is with creating a buffer for the second image. Single segment can't be larger than 64kb and my images are in raw format so they have 64000 bytes so i need to create second data segment. I tried: mydata SEGMENT blah db 1 mydata ENDS and it works. However when i change "blah db 1" to "buffer1 db 64000 dup (?)" program exits immediately. How to create a segment for the second buffer and how to move address of this segment to any segment register?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!