comparison target-utils/loadagent/serextra.S @ 648:3229940734e5

loadagent: binary memload command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 02 Mar 2020 02:32:18 +0000
parents
children
comparison
equal deleted inserted replaced
647:dfe6ba3611cd 648:3229940734e5
1 #include "ns16550.h"
2
3 @ extra serial I/O functions for loadagent binary operations
4
5 .text
6 .code 32
7 .globl serial_out_if_empty
8 serial_out_if_empty:
9 ldr r1, =uart_base
10 ldr r2, [r1]
11 ldrb r3, [r2, #NS16550_LSR]
12 tst r3, #NS16550_LSR_THRE
13 strneb r0, [r2, #NS16550_THR]
14 bx lr