Clean way to align an instruction?

Hi,

I’m targeting an instruction that has an alignment constraint. Not on data, on the instruction itself. This is easily used from asm by a .align directive before the instruction, but I can’t find an api to emit one. Using the integrated assembler.

My workaround is to align the function, count instructions from the start, multiplying by the size of each instruction, then emitting nops as necessary. Most instructions are fixed size, thankfully.

This is horrible though. Is there a better way?

Thanks!

Jon

Hi Jon,

Hey Tim,

That’s ideal. Thanks!

Jon