Subject: Re: [stella] Stack pointer. Some questions From: Christian Bogey <khryssun@xxxxxxxx> Date: Sun, 9 May 2004 17:28:40 +0200 (CEST) |
Hi, > And the stack is 2 bytes in ram that points to code. Well not necessary, you can use the stack to store temporary values e.g : LDA #$FF ; Store 255 into Accumulator PHA ; Push the BYTE #$FF on the stack ; Stack address will decrease 1 byte LDA #$00 ; Store 0 into A PLA ; Pull Stack value (#$FF) to A ; Stack address will increase 1 byte the result : you'll have #$FF into Accumulator, not 0 Stack use is different than other registers. take care, chris Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com ---------------------------------------------------------------------------------------------- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] Stack pointer. Some qu, happy_dude | Thread | Re: [stella] Stack pointer. Some qu, Kroko |
Re: [stella] Stack pointer. Some qu, happy_dude | Date | Re: [stella] Stack pointer. Some qu, Kroko |
Month |