I am coding in 8086 assembler and I have ran into an interesting question. The topic is to evaluate parentheses. If this was a question in Java
or C
, I would simply define two stacks - one for numbers, and another for operands. Can I do something similar in Assembly
?
As far as I know, the Stack is defined in the last memory cells of the data segment. If I define another Data Segment, would I have another usable stack?
Another info: I don't know the input size in the beginning and I am supposed to make the program as efficient as possible.
Thanks!