INV instruction should be added to the instruction set.
Opcode: 00001001
Description: Pops the top item from the stack, computes a multiplicative inverse, and pushes the result back onto the stack.
Effect on stack: the top item of the stack is replaced with its multiplicative inverse. The rest of the stack remains unchanged.
This instruction will also enable division. But rather than having a dedicated division instruction, division can be computed as a sequence of 2 instructions: INV MUL
INV instruction should be added to the instruction set.
This instruction will also enable division. But rather than having a dedicated division instruction, division can be computed as a sequence of 2 instructions:
INV MUL