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

Subversion Repositories leros

[/] [leros/] [trunk/] [asm/] [branch.asm] - Blame information for rev 4

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

Line No. Rev Author Line
1 3 martin
// Test code
2
 
3
// first instruction is not executed
4
        nop
5
// second instruction is executed twice
6
 
7
// conditional branch has one cycle delay
8
// for the condition
9
//
10
// test of branch conditions - should never loop
11
//
12
start:
13
        load 1
14
        load 0
15
        load 0
16
        load 7 // branch condidition
17
        load 0
18
        brnz brnzok
19
        branch start
20
brnzok:
21
        load 127
22
        load 0
23
        load 127
24
        brz brzok
25
        branch start
26
brzok:
27
        load 0
28
        load -1
29
        load 0
30
        brn brnok
31
        branch start
32
brnok:
33
        load -1
34
        load 5
35
        load -1
36
        brp brpok
37
        branch start
38
brpok:
39
        nop
40
        branch brok
41
        branch start
42
brok:
43
        nop
44
        out 0
45
 

powered by: WebSVN 2.1.0

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