Difference between revisions of "PM Opc UNPACK"
From SublabWiki
(UNPACK Instruction) |
m (→Examples) |
||
Line 34: | Line 34: | ||
; A = 0x21 | ; A = 0x21 | ||
− | UNPACK | + | '''UNPACK''' |
; A = 0x01 | ; A = 0x01 | ||
; B = 0x02 | ; B = 0x02 | ||
[[PM_InstructionList|'''« Back to Instruction set''']] | [[PM_InstructionList|'''« Back to Instruction set''']] |
Latest revision as of 00:32, 21 April 2009
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