Closed gpthimble closed 3 years ago
I'm trying to use customasm for my risc processor, but when I use #align directive, the assembler not produces the expected output. For example:
d8 0xff align 2 d16 0xffff
it should output like : 0x0000: ff 00 ffff
but when i try this on v0.11.4, it outputs: 0x0000: ff ff ff
Looking at the code, it appears that the #align directive is in bits... so #align 2 would make sure it's aligned to a 2 bit boundary, which won't do anything. #align 16 is likely what you want.
#align
#align 2
#align 16
I'm trying to use customasm for my risc processor, but when I use #align directive, the assembler not produces the expected output. For example:
it should output like : 0x0000: ff 00 ffff
but when i try this on v0.11.4, it outputs: 0x0000: ff ff ff