651 views
0 votes
0 votes
Zero address instructions are stack instructions

let the instructions be

PUSH #3

PUSH #5

ADD  ------------ Add's top 2 elements of stack and stores the result in top of stack

what if initially stack is empty and

PUSH #3

ADD ---------Then what elements are added ???

If I'm wrong Please correct me

1 Answer

0 votes
0 votes
ADD IS A BINARY OPERATOR ..MUST NEED TWO INPUT TO ADD....HOW CAN WE ADD WITH ONE ELEMENT

Related questions

1 votes
1 votes
1 answer
2
4 votes
4 votes
0 answers
4
LavTheRawkstar asked Nov 26, 2016
5,127 views
Write a program to evaluate thefollowing arithmetic statement: X= [A- B + C * (D * E - F)]/[G + H * K][i] Using a general register computer with three-address instruction...