As the version of Mips that I use don’t support the push/pop instructions, I should implement them.
So that, if i have many registers to push (pop obviously), how should I proceed?
If I want to push 2 registers for example, should I make the following code:
addiu $SP, $SP, -8
addiu $30,$SP,0 (move instruction)
The -8 in this case is th number of registers ti push*4,is it usually the case even if we have independent pushes in one application(many calls of push function) ?