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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [orp/] [orp_soc/] [sw.old/] [ints/] [ints1.S] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 782 lampret
#include "../support/spr_defs.h"
2
        .global _test
3
 
4
#
5
# clear sanity counters
6
#
7
_test:
8
        l.addi  r10,r0,0
9
        l.addi  r11,r0,0
10
        l.addi  r12,r0,0
11
        l.addi  r13,r0,0
12
        l.addi  r14,r0,0
13
        l.addi  r15,r0,0
14
        l.addi  r7,r0,300
15
_loop:
16
        l.addi  r10,r10,1
17
#       l.nop
18
        l.addi  r11,r11,1
19
        l.addi  r12,r12,1
20
        l.sfeq  r13,r7
21
        l.bnf   _loop
22
        l.addi  r13,r13,1
23
        l.addi  r14,r14,1
24
 
25
        l.ori   r8,r0,SPR_SR_EIR|SPR_SR_EXR
26
        l.mfspr r7,r0,SPR_SR
27
        l.xor   r7,r7,r8
28
        l.mtspr r0,r7,SPR_SR
29
 
30
        l.nop
31
        l.movhi r15,hi(0xdeadd9f8)
32
        l.ori   r15,r15,lo(0xdeadd9f8)
33
        l.add   r15,r15,r10
34
        l.add   r15,r15,r11
35
        l.add   r15,r15,r12
36
        l.add   r15,r15,r13
37
        l.add   r3,r15,r14
38
        l.jal   _report
39
        l.nop
40
        l.jal   _exit
41
        l.nop
42
 

powered by: WebSVN 2.1.0

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