From 7bd83b32b4fe72bdd81cf5af77d27521218a5216 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 7 Mar 2026 14:03:58 +0100 Subject: [PATCH] gui2: more code sharing. --- avr/modules/lcd2/gui2/base/guiapp.asm | 88 +++++++++++++++++++++------ 1 file changed, 68 insertions(+), 20 deletions(-) diff --git a/avr/modules/lcd2/gui2/base/guiapp.asm b/avr/modules/lcd2/gui2/base/guiapp.asm index 2e79710..4f8dc9b 100644 --- a/avr/modules/lcd2/gui2/base/guiapp.asm +++ b/avr/modules/lcd2/gui2/base/guiapp.asm @@ -408,21 +408,12 @@ GuiApp_OnTouch: ; @clobbers any, !Y guiAppSendTimerEvents: - push yl - push yh - ldd r16, Y+GUIAPP_OFFS_ROOTWINDOW_LO - ldd yh, Y+GUIAPP_OFFS_ROOTWINDOW_HI - mov yl, r16 - or yl, yh - breq guiAppSendTimerEvents_done - ldi r16, OBJECT_SIGNAL_TIMER - clr r17 - ldi r20, OBJECT_OPTSLO_TIMER_BIT - mov r21, r20 - bigcall OBJ_TreeHandleSignalIfMatchingOptsLo -guiAppSendTimerEvents_done: - pop yh - pop yl + ldi r16, OBJECT_SIGNAL_TIMER + clr r17 + ldi r20, (1<