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

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
BUZZ SONGS (161 Hits)
If you're a Rock fan, you'll be aware that Rock music helps to raise your energy levels quickly. It creates a buzz, that re-energizes you. In this post
It all started off in Manchester, a band was formed by the Gallagher brothers. Liam & Noel Gallagher, started writing, & composing music, hoping

Related Articles

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
https://en.wikipedia.org/wiki/De_Havilland_Vampire Introduction I wonder how many people are interested in aviation in particular military aviation.
The Vampire used  for bombing. Photo from https://en.wikipedia.org/wiki/No._7_Squadron_IAF#/media/File:No.7_Vampire.jpge   Background The
Photo of Sea harrier from Naval Review The Navy, in particular, had a close connection with the Royal Navy and the result was that the Naval top brass
While travelling on a flight from Singapore to Delhi I had the company of a fairly well to do businessman.He sat in the seat adjacent to mine. We got into