OpenCores
URL https://opencores.org/ocsvn/leros/leros/trunk

Subversion Repositories leros

[/] [leros/] [trunk/] [asm/] [echo.asm] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 martin
//
2
// Just echo characters received from the UART
3
//
4
 
5
        nop     // first instruction is not executed
6
 
7
 
8
start:
9
        in 0    // check rdrf
10
        and 2
11
        nop     // one delay slot
12
        brz start
13
        in 1    // read received character
14
        store r0
15
loop:
16
        in 0    // check tdre
17
        and 1
18
        nop     // one delay slot
19
        brz loop
20
        load r0
21
        out 1
22
        branch start

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.