ZAP - Zero and Add Packed Instruction

ZAP - Zero and Add Packed Instruction






Example:    ZAP    SUM,A

Explained:    zap instruction - location of defined packed decimal "SUM" that will receive the information - location of defined packed decimal "A" that will be moved into SUM

English:    the second operand is placed at the first operand location, where the operand and result are in the signed packed decimal format. *Equivalent to an addition to zero

Note:  ZAP Doesn't care what was in the first operand before the instruction

Principles of Operation Page:    8-13