I'm going through the assembly code generated by my Codevision compiler, and I'm getting a bit stuck on the following. I've spent some time Googling and just can't find any explanations.
This is the macro, and a subsequent piece of ASM code that calls the macro:
.MACRO __PUTW1R MOV R@0,R30 MOV R@1,R31 .ENDM __PUTW1R 13,14
Am I correct in saying that "13" is parameter "@0", so R@0 is replaced with R13
And that "14" is parameter "@1", so R@1 is replaced with R14
effectively making the macro code:
MOV R13,R30 MOV R14,R31
If anyone knows of some teaching material where this is explained that would be great also.