Push and pop, Computer Engineering

Suupose a stack-oriented processor that haves the stack operations PUSH and POP.  Arithmetic operations automatically involve the top one or two stack elements.

Starting with an empty stack, what stack elements remain after the following instructions are implemented?

 

Instruction

Stack (top number on left of stack)

PUSH 4

 

PUSH 7

 

PUSH 8

 

ADD

 

PUSH 10

 

SUB

 

MUL

 

 

 

Posted Date: 3/23/2013 2:19:18 AM | Location : United States







Related Discussions:- Push and pop, Assignment Help, Ask Question on Push and pop, Get Answer, Expert's Help, Push and pop Discussions

Write discussion on Push and pop
Your posts are moderated
Related Questions
Automatic Stock Control System in a Supermarket -  Bar codes are associated to all goods/items sold by the supermarket as a means of identification -  Every bar code is asso

What is a linker program? Ans. links the program with other programs required for its execution is called a linker program.

Q.  Write short note on Interfacing Keyboard, giving block diagram. Why do we need to introduce circuitry called Keyboard Status Word Generator?

What is a binary tree? A binary tree 'T' is described as A finite set of elements, known as nodes, such that: either (i) or (ii) happens: (i) T is empty (known as the 'nu

Explain non-pre-emptive algorithms?   Non preemptive algorithms: In this algorithm a job is provided to CPU for execution as long as the job is non-completed the CPU cannot

Signalling transfer point (STP) exist in (A) Strowger exchange                  (B)  SS7 (C)  Local area network                 (D)  PABX Ans: STP that is stand f

Everything stored on a computer can be represented as a string of bits. However, different types of data (for example, characters and numbers) may be represented by the same string

What is Software and hardware interrupt The software interrupts are program instructions. These instructions are inserted at desired location in a program. A program formed int

Use a timer interrupt to design a easy digital clock.  This clock will count only minutes and seconds, and start at 00:00 every time your program starts.  The show on the screen sh

What is a subroutine? A subroutine is a named, independent section of C code that performs a particular task and optionally returns a value to the calling program.