Assume Machine Single Register Six Instructions Follows Ld Places Operand Register St Plac Q37283160

Assume that a machine has a single register and six instructionsas follows:

LD   A       Places theoperand A into the register
ST   A       Places the contentsof the register into the variable A
AD   A        Adds the contentsof the variable A to the register
SB   A       Subtracts thecontents of the variable A from the register
ML   A       Multiplies thecontents of the register by the variable A
DV   A       Divides thecontents of the register by the variable A

You are to write a program that accepts a postfix expressioncontaining single letter operands and the operators +, -, *, / andprints a sequence of

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.