UART asm code shortening
Conditions: 16 bit PIC's, language asembler.
If i want send UART symbols row to PC terminal, but not want write long code to send everyone letter separately, is there any form in MPLAB? Roughly speaking, sending row ABC separately simbols:
mov #0x41, W0 ; Letter A
mov W0, U1TXREG
.....
mov #0x42, W0 ; Letter B
mov W0, U1TXREG
.....
mov #0x43, W0 ; Letter C
mov W0, U1TXREG
Sending row ABC non separately:
mov 'ABC', W0 ; <- How implement?
mov W0, U1TXREG
post edited by Andrius_Vaiceliunas - 2020/04/17 14:04:50