addze
Add to Zero Extended
addze RT, RA
Adds a register, 0, and the Carry bit.
Details
The addze instruction adds the contents of register RA to the contents of register RB, along with the carry bit (CA), and places the result into register RT. It also updates the CR0 field in the Condition Register (CR) if Rc is set to 1.
Pseudocode Operation
RT <- (RA) + CA
Programming Note
When Rc=1 (dot form), CR0 is updated with the signed comparison of the result against zero (LT, GT, EQ) and the current SO bit from XER.
Example
addze r3, r4
Encoding
Binary Layout
31
0
RT
6
RA
11
00000
16
OE
21
202
22
Rc
31
Operands
-
RT
Target Register -
RA
Source Register