diff --git a/avr/comproto_device.asm b/avr/comproto_device.asm index d2d4afd..5d905d3 100644 --- a/avr/comproto_device.asm +++ b/avr/comproto_device.asm @@ -21,46 +21,32 @@ ; ; IN: ; - R16: destination address +; - X : buffer to write to ; OUT: -; - CFLAG: set if okay, clear otherwise -; MODIFIED REGS: R6, R16, R17, R18, R20 (R3, R4, R15, R19, R21, X) - -CPRO_EnqueueDevice: - mov r6, r16 - - rcall COM_AllocBufferAndGetXY ; (r16, r17, r21) - brcc CPRO_EnqueueDevice_error +; - nothing +; REGS: R3, R4, R16, R17, R18, X (R19, R20, R21) +CPRO_WriteDevice: + ldi r17, COM2_PAYLOAD_FLAGS_UID | (6<