AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Syntax:          MVN {<cond>}{S} <destination>, <operand2>
Operation:     destination = NOT (operand two)
Flags:          N,Z,(C)

This instruction has exactly th same effect as MOV, except that all the bits moved from the source register are automatically inverted. This allows negative immediate numbers to be moved into registers

Under the two's complement scheme, the number 'n' is represented as:
NOT (n) + 1

Examples:
MVN  R0,#0          ; Move -1 into register R0
MVN  R1,#9          ; Move -10 into R1
MVN  R3,R5          ; R3 = NOT (R5)
MVN  R6,R7,LSR #1     ; R6 = NOT (R7 DIV 2)

[sh-index] Back to list of manuals