This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Please xplain

  259           c1_tx_fifo_in_gc++;
   \   0000001C   ....               LDI     R30, LOW(c1_tx_fifo_in_gc)
   \   0000001E   ....               LDI     R31, HIGH(c1_tx_fifo_in_gc)
   \   00000020   ....               LDI     R19, (c1_tx_fifo_in_gc) >> 16
   \   00000022   BF3B               OUT     0x3B, R19
   \   00000024   8100               LD      R16, Z
   \   00000026   9503               INC     R16
   \   00000028   8300               ST      Z, R16
    260                 c1_tx_fifo_in_gc &= (MAX_TX_FIFO - 1);
   \   0000002A   9110....           LDS     R17, LWRD(c1_tx_fifo_in_gc)
   \   0000002E   9310....           STS     LWRD(c1_tx_fifo_in_gc), R17
   \   00000032   E000               LDI     R16, 0
   \   00000034   BF08               OUT     0x38, R16

please explain the above, I am unable to understand the Assembly routines for the above two "C Statements".

0