Brad Kelly

Brad Kelly

  • 2k
  • 3
  • 51

What is the code that will produce this MIPS result?

Sep 16 2020 10:33 PM
I have been given some machine code and MIPS assembly code. I now need to write code that will take in a .txt file with the following machine code to produce the following MIPS code.
3c011001 34300000 8e080000 20090003 11200004 01094020 2129ffff ae080000 08100004 2002000a 0000000c
This is the machine code in which I have to write code to produce and print MIPS code that looks like
lui $at, 0x1001
ori $s0, $at, 0x0000
lw $t0, 0($s0)
addi $t1, $zero, 3
beq $t1, $zero, 0x0004
add $t0, $t0, $t1
addi $t1, $t1, -1
sw $t0, 0($s0)
j 0x00400010
addi $v0, $zero, 10

Brought to you by:

Answers (1)