How do I print values (integer) from memory addresses?
I did it with ascii string value, but I can't get it to work with integer value :/
Here is my code for printing ascii string:
lui $a0, 0x1001
addi $a0, $a0, 4
addi $v0, $0, 4
syscall
I tried the following code with printing the integer:
lui $a0, 0x1001
addi $a0, $a0, 0
addi $v0, $0, 1
syscall
It prints out 9 digits (no clue what that 9 digits are...) I need to print out the value that is stored in that memory address 0x10010000 :/ but I can't manage to get it to work...
I am only allowed to use the basic ones, so I can't use la to print >.< or something like that.
Please help >.< Please correct me if I have used any term incorrectly or missed any threads (my searches didn't return anything helpful).
Thank you very much.