The first decision to be taken in ISA design is the type of internal storage in the CPU. The three major choice are: a stack and accumulator architectures. Let us study how a stack organization works.

A stack is a storage device that stores information in a last-in-first-out(LIFO) fashion. Only two type of operations are possible in a stack, namely push and pop operations. Push places data onto the top of the stack, while pop removes the topmost program and in some cases the operating can be used explicitly for execution of a program and in some cases the operating system implements its implicitly, such as in subroutine calls and interrupts, as discussed earlier. Some computers reserve a separate memory for stack operations. However, most computers utilize main memory for representing stacks. For accessing data stored in stack, we need a stack pointer(Sp) register. The SP register is initially loaded with the address of the top of the stack. Each instruction pops its source operands off the stack and pushes its result on the stack. In memory, the stack is actually upside down.

 


Written by
Devpaul
Nthing 2 Say ........ be ma frd ew will knw abt me.....
  • No comments found

Latest Articles

Kids bring back some very vibrant childhood memories. The memories which are buried deep down, forgotten and almost lost. Until there is a kid (especially
One of the principles of politics and world power equations is that they are never static,  but dynamic and change at no stated interval. Thus we
Islam came to the sub-continent nearly 1300 years back when the first invasions from Arabia took place. Initially, the Muslims came to plunder but later

Related Articles

Life is a journey which is full of surprises. It is a smooth hurdle free journey to some whereas for others it seems roller coaster ride. Every soul is
Learning is an art and to learn anything one has to become thorough with the study material required for it. Studying or reading books, grasping the information
We as human beings expect all the time from every one around us. This is because we have developed within ourselves a belief that we all live in a society
In today's world we seem to control everything. We have become masters of everything that we see around us. Our constant efforts that we have put in developing
Karma means work. It is task that we perform throughout our day. It is not only related to physical aspect but also mental aspect too. The thoughts we