projects
/
calu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bootromfun: okay, speicherzugriffe haben definitiv bei mein fpga ned [...]
[calu.git]
/
2_isa
/
src
/
bootrom.s
diff --git
a/2_isa/src/bootrom.s
b/2_isa/src/bootrom.s
index 9dcc5411d9c80cfc055f4e5a611b9738e65820fc..9ff1bf77d26158c56366cccb50566fb1be858a76 100644
(file)
--- a/
2_isa/src/bootrom.s
+++ b/
2_isa/src/bootrom.s
@@
-25,15
+25,10
@@
main:
ldi r11, PBASE@lo
ldih r11, PBASE@hi
poll:
ldi r11, PBASE@lo
ldih r11, PBASE@hi
poll:
- ldw r3, UART_STATUS(r10)
- andx r3, UART_RECV_NEW
- brzs+ poll; branch if zero
- xor r0, r0, r0
- ldw r0, UART_RECV(r10)
+ call recv_byte
; we received the enter bootrom sign
xor r1, r1, r1
cmpi r0, 0x48 ; 'H'
; we received the enter bootrom sign
xor r1, r1, r1
cmpi r0, 0x48 ; 'H'
- br tehend
breq+ bt_H
br poll ; else
breq+ bt_H
br poll ; else
@@
-163,3
+158,12
@@
bt_J:
brr r0
tehend:
brr r0
tehend:
+ xor r1, r1, r1
+ ldi r1, 0x41 ; 'A'
+ call send_byte
+ xor r1, r1, r1
+ ldi r1, 0x42 ; 'B'
+ call send_byte
+ xor r1, r1, r1
+ ldi r1, 0x43 ; 'C'
+ call send_byte