See below.
In
the next stage, characters from the character
buffer are pushed one by one onto the stack.
The first instruction (at pushl:
)
uses indexed addressing to load the current character
from the buffer (str:
) into the least
significant byte of $t0
.
Next, the current character is tested. If it is null (zero) then control branches out of the loop. Otherwise the character is pushed onto the stack. Then the process is repeated.
Fill in the blanks.