- Keep loop counters in FindNextItem/FindPrevItem (prevents infinite recursion) - Restore FindNextDownItem/FindNextUpItem to original logic: - Move ONE row, then delegate to FindNextItem if slot empty - Fix boundary check in FindNextUpItem: use BEQ/BPL for signed comparison (CMP #$01 : BCS was wrong - unsigned comparison treats $FE as 254 >= 1) The original design: Up/Down navigate rows, delegate to horizontal scan if target slot is empty. The loop counters in horizontal navigation prevent infinite loops when all items are empty. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
7.4 KiB
7.4 KiB