Jump to content

DASM alignment question


Recommended Posts

I'm trying to figure out how to get DASM to align some data within a block while keeping the entire block of data together.  Here's an example of what I mean:

     .byte %00001010  ; |    X X |           
     .byte %00000100  ; |     X  |               
     .byte %00001010  ; |    X X |           
     .byte %00000000  ; |        | <--- this byte needs to be aligned to 4, but also have the three bytes before it stay with it

If I was to stick an align 4 in there, it would potentially insert padding between the other three bytes.  Is there any way I can enforce that a group of bytes has a particular offset that is aligned with DASM?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...