I am looking into writing a pure assembly interrupt service routine.
To do that I have been looking at the "Coldfire Family Programmer's reference Manual, Rev.3" and the Netburner document "Coldfire_assembly_language.pdf".
There is one snag there: the assembler syntax mentioned in it does not match the assembler syntax used in the NBEclipse environment.
Example: to store register a0 on the stack would, according to the reference manual, be:
Code: Select all
move.l a0,(a7)+
in NBEclipse the syntax is:
Code: Select all
move.l %A0,%a7@+
In particular I now that to push A0 on the stack it takes:
Code: Select all
move.l a0,(a7)-
Pulling it from the stack takes:
Code: Select all
move.l +(a7), a0
(pre-increment a7 and move from location a7 to a0).
i can't find an example or description of the correct syntax to do the latter one in NBeclipse.
I have tried the line below and a lot of other variants but they don't compile.
Code: Select all
move.l %a7+@
Surely there must be something somewhere ?