X-Git-Url: http://cloudbase.mooo.com/gitweb/avrcpm.git/blobdiff_plain/678fc0b01b6a5e7ebb30388383ce2bea0d30303a..4675c141e70a1bc417c0d2e70c2f7946715aa605:/avrcpm/avr/hw-uart.asm diff --git a/avrcpm/avr/hw-uart.asm b/avrcpm/avr/hw-uart.asm index e85721d..6fdb6db 100644 --- a/avrcpm/avr/hw-uart.asm +++ b/avrcpm/avr/hw-uart.asm @@ -66,11 +66,10 @@ uart_init: ; Save received character in a circular buffer. Do nothing if buffer overflows. -rxint: - .org URXCaddr - rjmp rxint ; USART receive int. +; USART receive interrupt + + INTERRUPT URXCaddr - .org rxint push temp in temp,sreg push temp @@ -130,11 +129,10 @@ uartgetc: pop zh ret -txint: - .org UDREaddr - rjmp txint ; USART transmit int. +; USART transmit interrupt + + INTERRUPT UDREaddr - .org txint push temp in temp,sreg push temp