Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

A51 assembler directive for WORD-ALIGNING the descriptor

lock attach
Attachments are accessible only for community members.

A51 assembler directive for WORD-ALIGNING the descriptor

Anonymous
Not applicable
Question: I understood from the technical reference manual that the descriptors should be WORD-ALIGNED. Is there an A51 assembler directive that can be used to automatically word-align labeled sections of assembly inside of a segment?

 

Answer:

The below A51 assembler directive can be used to WORD-ALIGN the descriptors:

org (($ / 2) +1) * 2

The usage of this directive can be found in the attached dscr.a51 where the descriptor is initially not WORD-ALIGNED.

Attachments
0 Likes
587 Views
Contributors