Re: [stella] Addressing Problem

Subject: Re: [stella] Addressing Problem
From: Manuel Rotschkar <cybergoth@xxxxxxxx>
Date: Sat, 30 Jul 2005 14:00:29 -0400
Hi there!

> Lets image i have 10 levels. X is only 8 bit. So it will overflow after
> finishing level 4 and loading level 5. How can i solve this problem?

Indirect Y indexing should do the trick:

When Loading your data:
LDA (levelPointer),Y

Advancing to the next level:
    LDA levelPointer
    ADC #61
    STA levelPointer
    BCC MSBFine
    INC levelPointer+1

Archives (includes files) at
Unsub & more at

Current Thread