For anyone who can help me with spim assembly...
I'm trying to input a string from a file using MIPS, every resource i read says to use the following code. And my teacher mentioned using -file ps3.a < hex.txt but everything i do still waits for the user to enter an input... Any advise would help.
I've tried with pcSpim on a windows box and xspim on a linux box and got same result.
li $v0, 8
la $a0, hexInput
li $a1, 10
syscall
I'm trying to input a string from a file using MIPS, every resource i read says to use the following code. And my teacher mentioned using -file ps3.a < hex.txt but everything i do still waits for the user to enter an input... Any advise would help.
I've tried with pcSpim on a windows box and xspim on a linux box and got same result.
li $v0, 8
la $a0, hexInput
li $a1, 10
syscall