Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Question about accessing variable in LIFO stack

Status
Not open for further replies.

sacrpio

Member level 3
Joined
May 24, 2004
Messages
56
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
500
Stack related query?????

Dear All,
Suppose there are one variable.
i copy 'A' to that variable & push this to Stack,
NOw i copy 'B' to that variable & push to stack,
now i copy 'C' to taht variable & push to stack,
At last i copy 'D' to that Variable & push to stack..

Now i want to access 'A', Is it possible?
If it is possible then where upper three variables will be stored? My stack is LIFO. How this takes internally.....
thankx
 

traxonja

Advanced Member level 4
Joined
Apr 6, 2004
Messages
109
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Activity points
1,184
Re: Stack related query?????

Hello,

Why don't you try to implement a software stack management? Here is a sample of FILO type, from microchip.com. You could try to figure out the rest (to make it work the way you want it).

Trax
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top