Node:Z8000-Regs, Next:Z8000-Addressing, Previous:Z8000-Chars, Up:Z8000 Syntax

##### Register Names

The Z8000 has sixteen 16 bit registers, numbered 0 to 15. You can refer to different sized groups of registers by register number, with the prefix `r` for 16 bit registers, `rr` for 32 bit registers and `rq` for 64 bit registers. You can also refer to the contents of the first eight (of the sixteen 16 bit registers) by bytes. They are named `r` n `h` and `r` n `l`.

    byte registers

         r0l r0h r1h r1l r2h r2l r3h r3l
         r4h r4l r5h r5l r6h r6l r7h r7l

    word registers

         r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15

    long word registers

         rr0 rr2 rr4 rr6 rr8 rr10 rr12 rr14

    quad word registers

         rq0 rq4 rq8 rq12