Affected Flags |
|||
C | V | N | Z |
ext | : extend data size |
The ext data function is to extend data size in a register from 8 bits (or 16 bits) to 16 or 32 bits. This function is intended only for signed numbers because the sign bit is extended.
rx = working register
Form | Effect |
ext.bw rx |
8bits -> 16 bits |
ext.bl |
8bits -> 32 bits |
ext.wl | 16bits-> 32 bits |
D = Working Register
Instruction | Op Code |
Cycles | Encoding |
ext.bw rx | 21 | 6 | 00100001 0000DDDD |
ext.bl rx | 61 | 6 | 01100001 0000DDDD |
ext.wl rx | A1 | 6 | 10100001 0000DDDD |
// Example : Todo