-
Update on problem with structured macros
03/27/2021 at 20:33 • 0 commentsThe problems was a code 18: 18 inches in front of the monitor!
The expansion works fine as expected.
I was using this structure:
_do
;do stuff
_while (cond)
The correct macro in this case would be:
_do
;do stuff
_do_while (cond)
or
_while (cond)
;do stuff
_while_end
-
Problem with structured macros on ATxmega128A1
03/22/2021 at 06:41 • 0 commentsThere seems to have a problem with the structured macro expansion. The list file shows correct expansion but when running a program, it doesn't work. When replacing the structured macros with normal instructions, the program runs fine.
By comparing the hex files, the jump labels generated by the structured macros are not adjusted correctly by the assembler and jump to the wrong places.