Re: [stella] Stack pointer. Some questions

Subject: Re: [stella] Stack pointer. Some questions
From: Christian Bogey <khryssun@xxxxxxxx>
Date: Sun, 9 May 2004 17:28:40 +0200 (CEST)

> 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,


Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur
Archives (includes files) at
Unsub & more at

Current Thread