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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [mp3/] [sw/] [ints/] [ints2.S] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 505 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 r7,r0,602
14
_loop:
15 598 lampret
        l.sfne  r11,r7
16 505 lampret
        l.sw    -0x100(r1),r11
17
        l.lwz   r12,-0x100(r1)
18
        l.bnf   _stop
19
        l.sfeq r11,r12
20
        l.bf _loop
21
        l.addi r11,r11,1
22
        l.addi r15,r15,1
23
        l.nop
24
_stop:
25
        l.nop
26 598 lampret
        l.ori   r8,r0,SPR_SR_EIR|SPR_SR_EXR
27 505 lampret
        l.mfspr r7,r0,SPR_SR
28
        l.xor   r7,r7,r8
29
        l.mtspr r0,r7,SPR_SR
30
 
31
        l.movhi r15,hi(0xdeadd9f9)
32
        l.ori   r15,r15,lo(0xdeadd9f9)
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 564 lampret
        l.add   r3,r15,r14
38
        l.jal   _report
39 505 lampret
        l.nop
40 564 lampret
        l.jal   _exit
41
        l.nop
42 505 lampret
 

powered by: WebSVN 2.1.0

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