Reading an integer into a local variable in MIPS

How can I read an integer in a local variable in MIPS? Is it possible? The problem will ask me to use the concept of assigning integer variables as local variables. #A question from my text book. And by the way, not homework!

Thanks in advance !: D

+7
source share
1 answer
li $v0, 5 syscall move $t0, $v0 

The value is now in $ t0. This will read the integer from the console.

+18
source

All Articles