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

Subversion Repositories rise

[/] [rise/] [trunk/] [examples/] [loop.s] - Blame information for rev 151

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

Line No. Rev Author Line
1 86 cwalter
/*
2
 * Description: Simple loop
3
 * Autor: Christian Walter <e0225458@student.tuwien.ac.at>
4
 */
5
 
6
    .text
7
    .org    0x0000
8
 
9
reset:
10
    ld      r3, addrlo(loop_start)
11
    ldhb    r3, addrhi(loop_start)
12
    ld      r4, addrlo(loop_middle)
13
    ldhb    r4, addrhi(loop_middle)
14
    ld      r5, addrlo(loop_end)
15
    ldhb    r5, addrhi(loop_end)
16
loop_start:
17
    ld      r1, r0
18
    ld      r1, #5
19
loop_middle:
20
    tst     r1
21
    jmpz    r5
22
    sub     r1, #1
23
    jmp     r4
24
loop_end:
25
    jmp     r3
26
 

powered by: WebSVN 2.1.0

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