CL-PS7111
Low-Power System-on-a-Chip
01
;
wait for byte available
ldr
r1,[r12,#HwStatus];spin, if Rx FIFO is empty
tst
r1,#HwStatusUartRxFifoEmpty
bne
%b01
; read the data, store it and accumulate checksum
ldrb r0,[r12,#HwUartData]
;read data
strb r0,[r2],#1
;save it in memory
subs r3,r3,#1
;decrement count
bne
expired
%b01
;do more if count has not
;
all received, send end flag
ldr
r0,=endflag
strb r0,[r12,#HwUartData]
;send reply
ldr
address
r15,=codeexeaddr
;jump to execution
LTORG
END
98
APPENDIX A–BOOT CODE
September 1997
PRELIMINARY DATA BOOK v2.0