RE: index page zero operation.

From: Didier Derny <didier_at_aida.org>
Date: Sat, 15 Oct 2011 20:37:07 +0200
Message-ID: <000301cc8b69$7167d980$54378c80$@org>
Think I just wanted to know if it crossed the page or not

It worked as I thought but I was unable to remember the correct behavior.

Thanks all

-----Message d'origine-----
De : owner-cbm-hackers@musoftware.de
[mailto:owner-cbm-hackers@musoftware.de] De la part de Gerrit Heitsch
Envoyé : samedi 15 octobre 2011 15:20
À : cbm-hackers@musoftware.de
Objet : Re: index page zero operation.

On 10/15/2011 03:11 PM, Gerrit Heitsch wrote:
> On 10/15/2011 01:37 PM, Didier Derny wrote:
>> Hi,
>>
>> My memory is failing
>>
>> With the following code:
>>
>>
>> LDY #$02
>> LDA $FF,Y<- zero page
>>
>> Do I get the content of $0101 or $0001
>>
>> Or anything else ?
>
> Just tried on my C16 here... I get the contents of $0001 which is what I
> expected from memory.

... And I forgot... You can't use 'LDA $FF,Y', you have to use 'LDA 
$FF,X' in the zeropage, indexing by Y doesn't work there.

  Gerrit




       Message was sent through the cbm-hackers mailing list


       Message was sent through the cbm-hackers mailing list
Received on 2011-10-15 19:00:03

Archive generated by hypermail 2.2.0.