I was wondering about those labels. The stack is labeled wrong for getting the intuitive concept across.Be careful. I think the stack begins at Stack Base. So the first value of 3 should be at location Stack Base. The first PUSH instruction would put the value 1 at Stack Base + 1.
I was thinking in RPN, the best calculator OS around, from HP. Give a 35s a try!Yeah the stack + 3 is the top of the stack, so stack base initially contains value 3. Also, ADD/MULS apparently does not delete the 2nd top element...it just takes result and overwrites top element (according to Professor for this problem only).
|Thread starter||Similar threads||Forum||Replies||Date|
|J||Assembly language Help||Programming & Languages||4|
|S||Assembly Language Program||Homework Help||15|
|Can anyone help to write the Marie Assembly language code for the following question?||Homework Help||14|
|R||Please help me to convert this C code to assembly language of MIPS?||Programming & Languages||10|
|S||Dragon Board HCS12 Assembly Language, help||Microcontrollers||7|
by Kate Smith
by Rushi Patel