09-18-2017, 04:28 AM
Code:
BEQ .noMoreLores
BRA .checkLoreLoop
.noMoreLores
==> BNE .checkLoreLoop

also, i think both "CMP #$FF"s can be shrunk to INCs, provided nothing after the tests+branches reads A without overwriting it first.
iirc, if you move the "REP #$10" forward two instructions (or one), it'll zero the top halves of X and Y, meaning you can do a smaller, 8-bit LDY. (and that and the TYX might be a hair faster.). but best doublecheck the 65816 documentation.