Re: index page zero operation.

From: Gerrit Heitsch <gerrit_at_laosinh.s.bawue.de>
Date: Sat, 15 Oct 2011 15:19:45 +0200
Message-ID: <4E998871.4050206@laosinh.s.bawue.de>
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
Received on 2011-10-15 14:00:17

Archive generated by hypermail 2.2.0.