4.6.2 Extract Byte
Format:
EXTxxRa.rq,Rb.rq,Rc.wq
EXTxxRa.rq,#b.ib,Rc.wq
Operation:
CASE
big_endian_data: Rbv’ ← Rbv XOR 1112
little_endian_data: Rbv’ ← Rbv
ENDCASE
CASE
EXTBL: byte_mask ← 0000 00012
EXTWx: byte_mask ← 0000 00112
EXTLx: byte_mask ← 0000 11112
EXTQx: byte_mask ← 1111 11112
ENDCASE
CASE EXTxL:
byte_loc ← Rbv’<2:0>*8
temp ← RIGHT_SHIFT(Rav, byte_loc<5:0>) Rc ← BYTE_ZAP(temp, NOT(byte_mask) ) EXTxH:
byte_loc ← 64 - Rbv’<2:0>*8
temp ← LEFT_SHIFT(Rav, byte_loc<5:0>) Rc ← BYTE_ZAP(temp, NOT(byte_mask) )
ENDCASE
Exceptions: |
|
None |
|
Instruction mnemonics: |
|
EXTBL | Extract Byte Low |
EXTWL | Extract Word Low |
EXTLL | Extract Longword Low |
EXTQL | Extract Quadword Low |
EXTWH | Extract Word High |
EXTLH | Extract Longword High |
EXTQH | Extract Quadword High |
Qualifiers: |
|
None |
|
!Operate format
!Operate format
Instruction Descriptions