added more messages.
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
; * Please see toplevel file COPYING of that project for license details. *
|
||||
; ***************************************************************************
|
||||
|
||||
|
||||
;
|
||||
; ---------------------------------------------------------------------------
|
||||
; @routine NETMSG_Common_AddUidToBuffer @global
|
||||
@@ -71,6 +70,32 @@ netMsgCheckMessageInBuffer_error:
|
||||
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; @routine NETMSG_AddNextMsgIdToBuffer @global
|
||||
;
|
||||
; Write next message id (2 bytes) into buffer given by X, advance X.
|
||||
;
|
||||
; @return X points to behind written message id
|
||||
; @param X pointer to packet buffer
|
||||
; @param Y pointer to network interface data
|
||||
; @clobbers: r16, r17, r18
|
||||
|
||||
NETMSG_AddNextMsgIdToBuffer:
|
||||
ldi r18, 1
|
||||
ldd r16, Y+NET_IFACE_OFFS_LASTMSGID_LOW
|
||||
ldd r17, Y+NET_IFACE_OFFS_LASTMSGID_HIGH
|
||||
add r16, r18
|
||||
dec r18
|
||||
adc r17, r18
|
||||
std Y+NET_IFACE_OFFS_LASTMSGID_LOW, r16
|
||||
std Y+NET_IFACE_OFFS_LASTMSGID_HIGH, r17
|
||||
st X+, r16
|
||||
st X+, r17
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; @routine netMsgCalcMsgChecksum
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user