[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wildcard in a iie?
On Dec 23, 9:20 am, aiiad...@gmail.com wrote:
> On Dec 22, 1:46 pm, jonnosan <jonno...@gmail.com> wrote:
>
> > I took a copy of the 2732 EPROM on the card, and it looks like
>
> > F974: A9 A0 LDA #$A0
> > F976: 91 02 C8 STA ($C802),Y
> > F979: D0 FB BNE $F976
>
> won't it get stuck in a loop above?
Nice pick up. I can see I have a bug in my disassembler.
the single "STA($C802),Y should actually be:
STA ($02),Y
INY
so it will exit the loop when Y rolls over from 255 to 0.