-
Notifications
You must be signed in to change notification settings - Fork 1
en:Instruction set
Álvaro Torralba edited this page Nov 24, 2018
·
2 revisions

The mivip instruction set is very reduced. It only has height instructions, although it is believed that it will expand at some point. For this reason, the microcontrollers and processors of the family are considered MISC (Minimal Instruction Set Computers).
The instructions are not of a fixed width, their size can vary from 8 to 24 bits.
-
hlt: It tells the processor to stop the execution. -
nop: It has no effect. Useful for debugging.
-
mov: Moves to the register indicated as the first parameter the hexadecimal value indicated in the second argument. -
lor: Load the hexadecimal value indicated in the second parameter to the register indicated in the second argument.
-
add: Add the value of the register indicated as the first parameter plus the hexadecimal value indicated in the second parameter and store the result in that register. -
sub: Subtracts the value of the register indicated as the first parameter minus the hexadecimal value indicated in the second parameter and stores the result in that register.
-
inc: Increase the value of the register indicated as the first argument. -
dec: Decrease the value of the register indicated as the first argument.
Mivip wiki by all the contributors is licensed under a Creative Commons Attribution 4.0 International License.
