Sign in to follow this  

Creating data segment in MASM for DOS

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this