Advertisement Jump to content
Sign in to follow this  

Creating data segment in MASM for DOS

This topic is 4977 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
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!