On Wed, 17 Dec 2014 11:51:28 -0700, Christopher Pomasl wrote:

>Generally, I prefer to code my own equates rather than using a macro

It's not my dog.

>simply because you can then document what the register is used for in
>the program.

You can do that even if you use a macro

>I think this is helpful to quickly see if a register is
>available for use or, if not, what it is used for and whether it could
>be reassigned easily.

I don't trust equates or comments for determining whether a register is 
available. It is too easy for the comments to get out of sync with the 
code when "someone" makes a change. I prefer to use the register 
cross-reference for this. The cross-reference also covers register usage 
that is not explicit, such as:

- LM R3,R5,something also updated R4
- TRT always uses R2

-- 
Tom Marchant

Reply via email to