On Sat, 22 Jul 2017 23:54:49 +1000, graeme wrote:

>I use r0:r15 for 32 bit reg references, g0:g15 for 64 bit reg references.
>
>Where the instruction references, or sets, bits 0:31 of a 64 bit reg, I use 
>the appropriate "gn" symbolic to identify the register, else I use the 
>appropriate "rn" symbolic.
>
>For the assembler to "police" this in some way I'd imagine having a set of 32 
>directives like:
>g0   gpr64 0

EQU does this for you, as described in John's original post.

G0    EQU   0,,,,GR64

>..
>r0   gpr32  0

R0    EQU   0,,,,GR32

-- 
Tom Marchant

Reply via email to