.ifnz UART_SUPPORT
sta rIntFlag
bbr INT_TIMER_A_bit,rIntFlag,lGoCheckTimerB
;;**************************
;;Run UART service start
;;**************************
;;rUartCnt 0 , 1 , 2 , 0 , 1 , 2 , ....
;; idle recv tran idle recv tran
bbr 0,rUartTranCnt,lUartSendEnd
bbr 1,rUartTranCnt,lUartSendEnd
lda rUartSendLen
beq lUartSendEnd
sta rIntFlag
bbr INT_TIMER_A_bit,rIntFlag,lGoCheckTimerB
;;**************************
;;Run UART service start
;;**************************
;;rUartCnt 0 , 1 , 2 , 0 , 1 , 2 , ....
;; idle recv tran idle recv tran
bbr 0,rUartTranCnt,lUartSendEnd
bbr 1,rUartTranCnt,lUartSendEnd
lda rUartSendLen
beq lUartSendEnd
lUartSendBit:
如上述代码,前面.ifnz UART_SUPPORT是判断宏UART_SUPPORT是否为0,如果不是0,该语句下述的操作才会有效。
UART_SUPPORT equ 1
如上,是宏UART_SUPPORT的定义处。
.ifnz :如果不是零,if not zero。