![]() |
|
| << Previous | Next >> | |
| | |
LD pd,ps+d Load Rabbit 4000/5000 Instruction
Description
Loads pd (any of the 32-bit registers PW, PX, PY or PZ) with the sum of ps (any of PW, PX, PY or PZ) and the 8-bit displacement d. These instructions cannot be used for general 32-bit arithmetic because the addition depends on the upper two bytes of ps. If the upper two bytes are all 1's, then it is 16-bit addition. The following example illustrates this point:
ld PW,0xFFFFFFFF
ld PW,PW+1 ;yields PW=0xFFFF0000ld PW,0x7FFFFFFF
ld PW,PW+1 ;yields PW=0x80000000
| Rabbit Instructions | << Previous | Next >> | rabbit.com |