Re: STACK IMPLEMENTATION



"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.


.



Relevant Pages

  • STACK IMPLEMENTATION
    ... micro what would happen. ... My understanding is that i will lose the the ... (As i dont have any SIMULATOR available now i did not try this) ... PUSH_A: PUSH A ...
    (comp.arch.embedded)
  • Re: Switch question
    ... if you push it once it keeps the circuit on.. ... button again the circuit turns off. ... What are you controlling, and from what kind of power supply? ... Is this a homework question? ...
    (sci.electronics.design)