URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 132 |
Rev 157 |
;
|
;
|
; send.s -- send stream of bytes
|
; send.s -- send stream of bytes
|
;
|
;
|
|
|
; $8 serial base address
|
; $8 serial base address
|
; $9 temporary value
|
; $9 temporary value
|
; $10 character
|
; $10 character
|
; $11 counter
|
; $11 counter
|
; $31 return address
|
; $31 return address
|
|
|
.set tba,0xF0301000
|
.set tba,0xF0301000
|
|
|
add $8,$0,tba
|
add $8,$0,tba
|
add $11,$0,0
|
add $11,$0,0
|
loop:
|
loop:
|
add $10,$11,0
|
add $10,$11,0
|
and $10,$10,0xFF
|
and $10,$10,0xFF
|
jal out
|
jal out
|
add $11,$11,1
|
add $11,$11,1
|
j loop
|
j loop
|
|
|
out:
|
out:
|
ldw $9,$8,8
|
ldw $9,$8,8
|
and $9,$9,1
|
and $9,$9,1
|
beq $9,$0,out
|
beq $9,$0,out
|
stw $10,$8,12
|
stw $10,$8,12
|
jr $31
|
jr $31
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.