add comments.
This commit is contained in:
@@ -27,19 +27,19 @@
|
||||
; @return R25:R24 message id
|
||||
|
||||
NETMSG_ValueRead:
|
||||
adiw xh:xl, 2
|
||||
ld r23, X+ ; command
|
||||
ld r22, X+ ; src address
|
||||
adiw xh:xl, 4 ; skip uid
|
||||
ld r24, X+ ; msg id (low)
|
||||
ld r25, X+ ; msg id (high)
|
||||
ld r17, X+ ; value id
|
||||
adiw xh:xl, 1 ; skip value type
|
||||
ld r18, X+ ; value (low)
|
||||
ld r19, X+ ; value (high)
|
||||
ld r20, X+ ; denom (low)
|
||||
ld r21, X+ ; denom (high)
|
||||
sbiw xh:xl, 16 ; back to msg begin
|
||||
adiw xh:xl, 2 ; skip DEST, LEN 0
|
||||
ld r23, X+ ; command 2
|
||||
ld r22, X+ ; src address 3
|
||||
adiw xh:xl, 4 ; skip uid 4 ( 0)
|
||||
ld r24, X+ ; msg id (low) 8 ( 4)
|
||||
ld r25, X+ ; msg id (high) 9 ( 5)
|
||||
ld r17, X+ ; value id 10 ( 6)
|
||||
adiw xh:xl, 1 ; skip value type 11 ( 7)
|
||||
ld r18, X+ ; value (low) 12 ( 8)
|
||||
ld r19, X+ ; value (high) 13 ( 9)
|
||||
ld r20, X+ ; denom (low) 14 (10)
|
||||
ld r21, X+ ; denom (high) 15 (11)
|
||||
sbiw xh:xl, 16 ; back to msg begin 16 (12)
|
||||
ret
|
||||
; @end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user