SmileyDude Posted December 1, 2021 Share Posted December 1, 2021 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? Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted December 1, 2021 Share Posted December 1, 2021 You could try something like this: ORG ((.+ 3) & $fffc) + 1 Or this: ALIGN 4 .byte 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.