Re: A83: Switching the calculator off


[Prev][Next][Index][Thread]

Re: A83: Switching the calculator off




its 5678h thats popped into hl, last value pushed is first to be popped

>Thank you so much for that info Trey. I did read that somewhere, but didn't
>fully understand it. Now I think I do. Now let me see if this is right.
>"Push" saves the regester into memory (or stack as it really called), and
>pop loads it back into the register. Question, say you do this...
>    ld hl, 1234h
>    ld bc, 5678h
>    push hl
>    push bc
>    pop hl             ; ****** My question is in this case, is the number
>poped into hl, is that
>                                        5678h or is it 1234h? My guess that
>it is 5678h. Am I right or
>                                        completly wrong?
>Thank you
>>From Conway


Follow-Ups: