simavr
simavr copied to clipboard
UART0 and console register output uses different characters to print line of text
When writing data to UART0 the a line of text gets written to output when a \n character is encountered https://github.com/buserror/simavr/blob/b3a8e8f99b634062f6f07f6d24040282129c11b0/simavr/sim/avr_uart.c#L288 When a console register is used a \r character is needed to output a line of text https://github.com/buserror/simavr/blob/b3a8e8f99b634062f6f07f6d24040282129c11b0/simavr/sim/sim_avr.c#L214
It would make sense if both methods use the same delimiter character to denote a line break, perhaps check for either or both of \r and \n in both methods.