MCOM MOVE COMPLEMENTED
Purpose |
move the logical complement of an integer |
Format |
opcode src.rx, dst.wx |
Operation |
dst ß NOT src |
Condition codes |
N ß dst LSS 0; Z ß dst EQL 0; V ß 0; C ß C; |
Exceptions |
None |
Opcodes |
92 MCOMB Move Complemented Byte B2 MCOMW Move Complemented Word D2 MCOML Move Complemented Long |
Description |
The destination operand is replaced by the ones complement of the source operand. |
Example 1
.text
main: .word 0
mcomb r1, r2 # r2 = 0xFF
mcomw r2, r3 # r3 = 0xFF00
mcoml r3, r4 # r4 = 0xFFFF00FF
halt