[stella] 6502 ASM question...

Subject: [stella] 6502 ASM question...
From: Dennis Debro <ddebro@xxxxxxxxxxxxx>
Date: Tue, 10 Jun 2003 13:17:30 -0400
I'm looking to implement Thomas' suggestion for Climber (having random ladder placement) and I've run into a snag. I don't know if I'm thinking too hard or if I've been looking at this so long that I can't see a solution.

Anyway, here's my dilemma...

To get random ladders I can read for a random number but the numbers have to have constraints. The ladders make up 2 PF graphics and they have to have at least a ladder's distance between them. So each 1 or 0 must be next to another of the same value. Am I making since???

Does anyone know of a quick math method that would get this combination? Right now I'm thinking I'll have to check each bit individually.

Take care,

Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/

Current Thread