; *************************************************************************** ; 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_MENU_ASM #define AQH_AVR_W_MENU_ASM ; *************************************************************************** ; defines .equ MENUWIN_OFFS_BEGIN = MAINWINDOW_SIZE .equ MENUWIN_SIZE = MENUWIN_OFFS_BEGIN+0 .equ MENUWIN_SIGNAL_CLIMATE = WIDGET_SIGNAL_NEXTFREE+0 .equ MENUWIN_SIGNAL_LIGHT = WIDGET_SIGNAL_NEXTFREE+1 .equ MENUWIN_SIGNAL_WINDOWS = WIDGET_SIGNAL_NEXTFREE+2 .equ MENUWIN_SIGNAL_DEBUG = WIDGET_SIGNAL_NEXTFREE+3 .equ MENUWIN_SIGNAL_NETSTATS = WIDGET_SIGNAL_NEXTFREE+4 .equ MENUWIN_SIGNAL_NEXTFREE = WIDGET_SIGNAL_NEXTFREE+5 .equ MENUWIN_SEL_CLIMATE = 1 .equ MENUWIN_SEL_LIGHT = 2 .equ MENUWIN_SEL_WINDOWS = 3 .equ MENUWIN_SEL_DEBUG = 4 .equ MENUWIN_SEL_NETSTATS = 5 ; *************************************************************************** ; code .cseg ; --------------------------------------------------------------------------- ; @routine MenuWin_new @global ; ; @param Y pointer to GUIAPP ; @return CFLAG set of okay, cleared otherwise ; @return Y address of newly created object MenuWin_new: bigcall GuiApp_GetRootWindow brcc MenuWin_new_ret mov xl, r18 ; use root window as parent for main window mov xh, r19 ldi r16, 0 ; OPTS ldi r17, (WIDGET_PACK_FILLED<