4.6.6 Zero Bytes

Format:

ZAPx

Ra.rq,Rb.rq,Rc.wq

!Operate format

ZAPx

Ra.rq,#b.ib,Rc.wq

!Operate format

Operation:

CASE

ZAP:

Rc BYTE_ZAP(Rav, Rbv<7:0>)

ZAPNOT:

Rc BYTE_ZAP(Rav, NOT Rbv<7:0>)

ENDCASE

Exceptions:

 

None

 

Instruction mnemonics:

 

ZAP

Zero Bytes

ZAPNOT

Zero Bytes Not

Qualifiers:

 

None

 

Description:

ZAP and ZAPNOT set selected bytes of register Ra to zero and store the result in register Rc. Register Rb<7:0> selects the bytes to be zeroed. Bit 0 of Rbv corresponds to byte 0, bit 1 of Rbv corresponds to byte 1, and so on. A result byte is set to zero if the corresponding bit of Rbv is a one for ZAP and a zero for ZAPNOT.

Instruction Descriptions 4–61

Page 117
Image 117
Compaq ECQD2KCTE manual Zero Bytes, Zap