← B585 Step the name-entry cursor left Map B5B3 → Draw the high-score table screen
B59C: Step the name-entry cursor right
Mirror of the left step, one cell right. On the wrap it restores the strip's rightmost attribute cell.
name_cursor_right B59C LD A,(name_entry_cursor) Read the cursor index.
B59F CP $1D At the right edge? If not, step right; otherwise wrap to the left end.
B5A1 JR NZ,name_cursor_right_0
B5A3 XOR A Wrap target is the leftmost cell.
B5A4 LD HL,ATTR_BASE+$11E Repaint the wrapped-from cell (the strip's rightmost) to the normal bright-white-on-black attribute. The redraw clears only the new index's neighbors, so without this the far end keeps its old highlight.
B5A7 LD (HL),$47
B5A9 JR name_cursor_right_1
name_cursor_right_0 B5AB INC A Step one cell right.
name_cursor_right_1 B5AC LD (name_entry_cursor),A Commit the new cursor index and play the cursor-move blip.
B5AF CALL sfx_name_cursor
B5B2 RET
← B585 Step the name-entry cursor left Map B5B3 → Draw the high-score table screen
Fork me on GitHub