Files
aqhomecontrol/avr/common/utils_copy_sdram.asm
Martin Preuss f806cf30e5 Revert "added ifdefs guards for includes."
This reverts commit 15199a17a5.
2025-04-21 00:46:57 +02:00

35 lines
877 B
NASM

; ***************************************************************************
; copyright : (C) 2023 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. *
; ***************************************************************************
; ***************************************************************************
; code
.cseg
; ---------------------------------------------------------------------------
; Utils_Copy_SDRAM
;
; IN:
; - X: dest in RAM
; - Y: src in RAM
; - R18: number of bytes to copy
; OUT:
; - nothing
; USED: R17, R18, X, Y
Utils_Copy_SDRAM:
ld r17, Y+
st X+, r17
dec r18
brne Utils_Copy_SDRAM
ret