From bb34cf9a76f3021a781a028434301bc4b70e5a6f Mon Sep 17 00:00:00 2001 From: mooinglemur Date: Sat, 7 Oct 2023 15:35:45 -0700 Subject: [PATCH] [UTIL] improve hexedit left/right navigation --- util/hexedit.s | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/util/hexedit.s b/util/hexedit.s index dfebe949..cad2c8b7 100644 --- a/util/hexedit.s +++ b/util/hexedit.s @@ -810,7 +810,19 @@ cursor_left: jsr erase_cursor dec cursor_x jsr draw_cursor -crl1: jmp user_input + jmp user_input +crl1: jsr calc_current_address + lda source_h + ora source_l + beq crl2 + jsr erase_cursor + lda hex_columns + asl + dec + sta cursor_x + jsr draw_cursor + jmp cursor_up +crl2: jmp user_input cursor_right: lda hex_columns @@ -821,7 +833,12 @@ cursor_right: jsr erase_cursor inc cursor_x jsr draw_cursor -crr1: jmp user_input + jmp user_input +crr1: + jsr erase_cursor + stz cursor_x + jsr draw_cursor + jmp cursor_down scroll_down_one: lda top_address_l