Hello there ! After some years off coding assembly and MC68000, I'm in the mood again. I have an alternative syntax question.
Is there a slightly different syntax than motorola that uses no hash for direct values, and uses parentheses around address/label for indirect values ?
--- motorola syntax ---
direct:
move.l #4,var
indirect:
move.l 4,var
--- alternative syntax ---
direct:
move.l 4,(var)
indirect:
move.l (4),(var)
---------------------------
Years ago I played with NASM and FASM in x86 assembly land. Those assemblers use below syntaxes corresponding to above instructions:
direct:
mov [var],4
indirect:
mov [var],[4]
(Or so I recall)