A stack-organized computer is an x-address instruction. What is the value of x?

A stack-organized computer is an x-address instruction. What is the value of x? Correct Answer zero

  • A stack-organized computer does not use an address field for the instructions ADD and MUL; The PUSH and POP instructions, however, need an address field to specify the operand that communicates with the stack
  • The following program shows how X = (A + B) will be written for a stack organized computer; (TOS stands for top of stack)


PUSH A TOS <- A

PUSH B TOS <- B

ADD TOS <- (A + B)

POP X M <-TOS

To evaluate arithmetic expressions in a stack computer, it is necessary to convert the expression into reverse Polish notation. The name "zero-address" is given to this type of computer because of the absence of an address field in the computational instructions.

Related Questions

You want to improve the TCP transmission speed of a Windows 2000 Server computer. You also want to remove an unused registry key. You use Regedit32 to edit the registry of the Windows 2000 Server. You insert a value in the registry named TCPWindowSize, and you remove the unused key. You restart the computer, but the computer stops responding before the logon screen appears. You want to return the computer to its previous configuration. What should you do?