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

Subversion Repositories leros

[/] [leros/] [trunk/] [asm/] [jal.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
// Test code
2
 
3
// first instruction is not executed
4
        nop
5
// second instruction is executed twice
6
 
7
// Test jal for function calls
8
//
9
// jump and link has one cycle delay
10
// for target address in accu
11
//
12
start:
13
        load 
14
        loadh >function // can be omitted for small programs
15
        nop
16
        jal r3
17
        load 1
18
        load 2
19
        load 3
20
        branch end
21
function:
22
        load 5
23
        store r0
24
        load r3
25
        nop
26
        jal r3
27
end:
28
        load 76
29
        out 0
30
 

powered by: WebSVN 2.1.0

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