UNPACK = Unpack Nibbles

Hex Mnemonic Cycles
DF UNPACK 8

Execute

A        =  (8-Bits) Register A
B        =  (8-Bits) Register B
    
; UNPACK

B = A SHR 4
A = A AND 0x0F

    

Description

Unpack byte in register A into 2 nibbles, storing them into register A and B.

Register A receive the lower nibble and register B receive the higher nibble.

Conditions

None

Examples

; A = 0x21
UNPACK
; A = 0x01
; B = 0x02
    

« Back to Instruction set