Extension of Assembler and Simulator for the MULT instruction
The original MARIE used only 15 instructions. Now we would like to add a new multiplication instruction.
Opcode number: 15 (0x1111)
Instruction: MULT X
RTN
MAR <->->
MBR <->->
AC <- ac="" *="">->
Here X is a memory parameter based on direct addressing.
Extend Assembler.java to support MULT instructions.
Extend MarieSim.java to support MULT instructions.
Test code:
Load X
MULT Y
Output.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here