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

Subversion Repositories leros

[/] [leros/] [trunk/] [asm/] [echo.asm] - Rev 5

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

//
// Just echo characters received from the UART
//

        nop     // first instruction is not executed


start:
        in 0    // check rdrf
        and 2
        nop     // one delay slot
        brz start
        in 1    // read received character
        store r0
loop:
        in 0    // check tdre
        and 1
        nop     // one delay slot
        brz loop
        load r0
        out 1
        branch start

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

powered by: WebSVN 2.1.0

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