; *************************************************************************** ; 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_COMMON_UTILS_ASM #define AQH_AVR_COMMON_UTILS_ASM ; *************************************************************************** ; code .cseg UTILS_BEGIN: utilsDateString: .db "%YEAR%-%MONTH%-%DAY%-%HOUR%:%MINUTE%", 0, 0 ; --------------------------------------------------------------------------- ; @routine Utils_FillSram @global ; ; @return X points directly behind filled memory ; @param X pointer to SRAM to fill ; @param r16 value to fill the SRAM with ; @param r17 size of area to fill ; @clobbers r17, X Utils_FillSram: tst r17 breq Utils_FillSram_end Utils_FillSram_loop: st x+, r16 dec r17 brne Utils_FillSram_loop Utils_FillSram_end: ret ; @end UTILS_END: .equ MODULE_SIZE_UTILS = UTILS_END-UTILS_BEGIN #endif