added more bigcall/bigjmp as we go along with larger code.

This commit is contained in:
Martin Preuss
2025-06-02 01:02:06 +02:00
parent 1f537849a9
commit 3582659018
8 changed files with 41 additions and 41 deletions

View File

@@ -27,7 +27,7 @@ NETMSG_MemStats_Write:
st X+, r16 ; src address
; uid
rcall NETMSG_Common_AddUidToBuffer ; (R16, R18, R19, R20, R21)
bigcall NETMSG_Common_AddUidToBuffer ; (R16, R18, R19, R20, R21)
; timestamp (0 for now)
clr r16
st X+, r16
@@ -53,7 +53,7 @@ NETMSG_MemStats_Write:
; current buffers used
push xl
push xh
rcall NET_Buffer_CountUsed ; (r16, r17, r18, X)
bigcall NET_Buffer_CountUsed ; (r16, r17, r18, X)
pop xh
pop xl
st X+, r16
@@ -67,7 +67,7 @@ NETMSG_MemStats_Write:
st X+, r16
sbiw xh:xl, 18 ; go back to beginning of message (1 byte dst addr, 1 byte length, 16 bytes payload)
rcall NETMSG_CalcAndAddChecksumByte ; (R16, R17, R18, R19, R20, X)
bigcall NETMSG_CalcAndAddChecksumByte ; (R16, R17, R18, R19, R20, X)
sbiw xh:xl, 19 ; go back to beginning of message (1 byte dst addr, 1 byte length, 16 bytes payload, 1 byte crc)
ret
; @end