From 6c9a8bbc04a98f3e2c39269d7f54440a0b787389 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Fri, 22 Dec 2023 02:17:36 +0100 Subject: [PATCH] fix status updates --- programs/spi-menu.s65 | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/programs/spi-menu.s65 b/programs/spi-menu.s65 index ca58aed..a75ed94 100644 --- a/programs/spi-menu.s65 +++ b/programs/spi-menu.s65 @@ -32,16 +32,13 @@ status_str: .res 17 ; 16 + null @check_byte: lda spi_p::bytes_written cmp trans_bytes - bne @byte_written + beq @read_keypad +@byte_written: + sta trans_bytes @check_page: lda spi_p::pages_written cmp trans_pages - bne @page_written - bra @read_keypad -@byte_written: - sta trans_bytes - ; bra @print_status - bra @read_keypad + beq @read_keypad @page_written: sta trans_pages bra @print_status