From 5a9bff2d0b0ae49cb1b2d28763bf6e04c742a2ea Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Tue, 7 Apr 2026 23:56:14 +0200 Subject: [PATCH] c03: more work on climate and netstats windows. --- avr/devices/c03/test/w_climate.asm | 28 +++++++++++++--- avr/devices/c03/test/w_netstats.asm | 50 ++++++++++++++++++----------- 2 files changed, 55 insertions(+), 23 deletions(-) diff --git a/avr/devices/c03/test/w_climate.asm b/avr/devices/c03/test/w_climate.asm index e673126..39231fd 100644 --- a/avr/devices/c03/test/w_climate.asm +++ b/avr/devices/c03/test/w_climate.asm @@ -38,18 +38,39 @@ ClimateWin_new: brcc ClimateWin_new_ret mov xl, r18 ; use root window as parent for main window mov xh, r19 + ldi r24, LOW(CLIMATEWIN_SIZE) + ldi r25, HIGH(CLIMATEWIN_SIZE) + bigcall Object_Alloc ; Y=space (!r16, !r17, !X) + brcc ClimateWin_new_ret + rcall ClimateWin_Init +ClimateWin_new_ret: + ret +; @end + + + +; --------------------------------------------------------------------------- +; @routine ClimateWin_new @global +; +; @param Y pointer to newly allocated widget data +; @param X pointer to root window +; @return CFLAG set of okay, cleared otherwise +; @clobbers any, !Y + +ClimateWin_Init: ldi r16, 0 ; OPTS ldi r17, (WIDGET_PACK_FILLED<