john2020
Full Member level 5
please help me what does the following 8051 assembly code do?
Code ASM - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 uart_tx_isr: PUSH ACC PUSH REG0 PUSH MPAGE CLR UTX1IF MOV A, uart_tx_head XRL A, uart_tx_tail JNZ uart_tx_next_byte CLR uart_tx_busy ANL IEN2, #~008h JMP uart_tx_isr_end uart_tx_next_byte: MOV MPAGE, #HIGH uart_tx_buffer MOV R0, uart_tx_tail MOVX A, @R0 INC uart_tx_tail MOV U1DBUF, A uart_tx_isr_end: POP MPAGE POP REG0 POP ACC RETI
Last edited by a moderator: