- #1
basketball853
- 18
- 0
Hey Guys! Thank you for checking out my Thread... I am taking a computer assembly class and i have homework due on Wed but i am stuck on a single problem. I have to convert MIPS instructions into binary, I want to learn how to do this because it will be on a test... and i could just go into Mars and assemble the code and read it from there but i want to know how to do it... okay soo the instructions are:
addi $sp, $sp, -8
sw $ra, 4($sp)
Now from looking into my book i see that addi has an Opcode of 001000 and it has a I instruction format...
Also sw has an Opcode of 101011 and is an I instruction format
How do i figure out what registers $sp?, $ra, the array 4($sp) are in binary? Please help... i would really appreciate it!
addi $sp, $sp, -8
sw $ra, 4($sp)
Now from looking into my book i see that addi has an Opcode of 001000 and it has a I instruction format...
Also sw has an Opcode of 101011 and is an I instruction format
How do i figure out what registers $sp?, $ra, the array 4($sp) are in binary? Please help... i would really appreciate it!