; *************************************************************************** ; copyright : (C) 2026 by Martin Preuss ; email : martin@libchipcard.de ; ; *************************************************************************** ; * This file is part of the project "AqHome". * ; * Please see toplevel file COPYING of that project for license details. * ; *************************************************************************** #ifndef AQH_AVR_W_CLIMATE_ASM #define AQH_AVR_W_CLIMATE_ASM ; *************************************************************************** ; defines .equ CLIMATEWIN_OFFS_BEGIN = MAINWINDOW_SIZE .equ CLIMATEWIN_SIZE = CLIMATEWIN_OFFS_BEGIN+0 ; *************************************************************************** ; code .cseg ; --------------------------------------------------------------------------- ; @routine ClimateWin_new @global ; ; @param Y pointer to GUIAPP ; @return CFLAG set of okay, cleared otherwise ; @return Y address of newly created object ClimateWin_new: bigcall GuiApp_GetRootWindow 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<