In assembly I find it very difficult to do anything, as I am used to programming in C, and one of the problems is figuring out how to use the stack to store values.
I know there is a separate register $sp used to put values on the stack. For example:
sub $sp, $sp, 2 #make room for 1 halfword on stack
After this point however I do not know how to add values to the stack such as:
.half 0x010A
And how do I print values that are on the stack? In my text books I have found nothing that prints out this hex value from the stack. Any help would be appreciated =).
I know there is a separate register $sp used to put values on the stack. For example:
sub $sp, $sp, 2 #make room for 1 halfword on stack
After this point however I do not know how to add values to the stack such as:
.half 0x010A
And how do I print values that are on the stack? In my text books I have found nothing that prints out this hex value from the stack. Any help would be appreciated =).