<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Thu, 11 Nov 2004 13:34:38 -0800
From   : Angus Duggan <angus.duggan@...>
Subject: Re: SRAM

Andrew W writes:
>> \ now accesses to locations &8000...&BFFF will address sideways RAM bank 4.
>> \ e.g. let's write 256 bytes from main RAM to sideways RAM
>> 
>> LDY #0
>> ..loop
>> LDA &3000,Y
>> STA &8000,Y
>> INY
>Do you need a CPY #256 here?

There is no such thing. The constant must be between 0 and 255, it's an 8-bit
register. The condition flags are set by INY, so when it wraps around from
255 to 0, Z is set.

a.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>