Re: STACK IMPLEMENTATION
- From: "Tom Lucas" <news@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Jul 2007 13:47:57 +0100
"Paul Burke" <paul@xxxxxxxxxx> wrote in message
news:5h62puF2s3seiU1@xxxxxxxxxxxxxxxxxxxxx
dk wrote:
I am trying to understand if i implement something like this in my
micro what would happen. My understanding is that i will lose the the
value of 'A'
CALL PUSH_A
.
.
.
CALL POP_A
PUSH_A : PUSH A
RET
POP_A: POP A
RET
You'll lose more than the value of A. You'll lose your job too
probably. Think about what RET does, and from that guess whether you
will ever get to call POP_A.
I don't think there will be jobs at stake - this is a homework question
I reckon. Good question to ask students though.
.
- Follow-Ups:
- Re: STACK IMPLEMENTATION
- From: Tim Wescott
- Re: STACK IMPLEMENTATION
- References:
- STACK IMPLEMENTATION
- From: dk
- Re: STACK IMPLEMENTATION
- From: Paul Burke
- STACK IMPLEMENTATION
- Prev by Date: Re: STACK IMPLEMENTATION
- Next by Date: Re: Open Source EC++ Implementation?
- Previous by thread: Re: STACK IMPLEMENTATION
- Next by thread: Re: STACK IMPLEMENTATION
- Index(es):
Relevant Pages
|