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

Photo from https://pl.wikipedia.org/wiki/Boeing_P-8_Poseidon The Indian navy has a long and checkered history and was a creation of the English
The last week has been a traumatic period for the world. There have been at least 5 terror attacks and in one of the most reprehensible incidents an old
I still have memories of my college days and they are the best ones. Not because it was fun but because of the rigorous development we had to undergo.

Related Articles

  A few years ago, Tamil Cinema was dishing out the worst movies in India.  There was absolutely no attempt made to show reality in any way,
It’s now very much well known that the recently released Hindi cinema Piku directed by Shoojit Sircar has touched every soul. I am also one of those
The only reason I remember the iconic movie Sholay is because it was only  in my fifth attempt that I could  manage a ticket to see it. Even
PK is a beautifully crafted story which i felt was an extension of OMG, where Paresh Rawal played the central role and Akshay kumar played the role of
Manju Warrier’s ‘How Old are You?’ hits theaters on May 17, 2014 It was nothing short of a historic moment for Malayalam cinema when ‘How old