Write a single line MIPS assembly code as an input through the SPIM simulator console and the program will output a 32 bit MIPS machine code through the console. I'm using PCSpim to write the code.
I input this instruction in the console.
and the console outputs.
00100001 00001000 00000000 00000001
I'm trying to write it for other instruction codes as well.
MIPS Syscall Sheet
The Attempt at a Solution
la $a0, 8 # string into $a0
move $a1, $a0, 8
I just need an example for one instruction like using addi as a guide and I can do the rest. Or point in the right direction. I get stuck after getting the input from console. Should I store the "whole" string to one address? I know there are different ways of doing it like taking each character and check it but I'd rather take the whole code through a string.