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.

 

Like it on Facebook, +1 on Google, Tweet it or share this article on other bookmarking websites.


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

Latest Articles

Photography is the art of capturing memories and moments that we don't want to lose and keep with us while traveling to many variety of places ranging
Director:    Clint Eastwood Cast:          Tom Hank, Aaron Eckhart, Laura Linny  Rating:      
Well I don't think there's a better way to express your love for someone, than through songs. Cards, or the well planned 'unexpected gift at an unexpected

Related Articles

Introduction  We all have a powerful desire in our mind to see the unseen and to know the unknown. As a result we spontaneously seek for travelling
It's funny that when a software is improvised the version needs to be changed. For example if it is SW then it become SW 1.2 or SW 2.0 and so on. And as
China and India never had a contagious border as most of the time Tibet was a buffer state. The British farsighted as ever got their vision of Central
Today is the day when skills matter, and qualifications matter only to some extent.  The Indian organizations and even those like the NGOs want only
Introduction  Now a day shortage of water is mainly the most common problem which almost every state has, but it is very common in villages. As we