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

Subversion Repositories darkriscv

[/] [darkriscv/] [trunk/] [src/] [banner.s] - Diff between revs 2 and 4

Show entire file | Details | Blame | View Log

Rev 2 Rev 4
Line 3... Line 3...
        .text
        .text
        .align  2
        .align  2
        .globl  banner
        .globl  banner
        .type   banner, @function
        .type   banner, @function
banner:
banner:
        addi    sp,sp,-288
        .LA0: auipc     a5,%pcrel_hi(.LC0)
        lui     a1,%hi(.LC0)
        addi    sp,sp,-292
        li      a2,269
        addi    a5,a5,%pcrel_lo(.LA0)
        addi    a1,a1,%lo(.LC0)
        sw      ra,288(sp)
        addi    a0,sp,4
        sw      s0,284(sp)
        sw      ra,284(sp)
        sw      s1,280(sp)
        sw      s0,280(sp)
        addi    a4,sp,8
        sw      s1,276(sp)
        addi    t2,a5,264
        call    memcpy
.L2:
 
        lw      t0,0(a5)
 
        lw      t1,4(a5)
 
        lw      a0,8(a5)
 
        lw      a1,12(a5)
 
        lw      a2,16(a5)
 
        lw      a3,20(a5)
 
        sw      t0,0(a4)
 
        sw      t1,4(a4)
 
        sw      a0,8(a4)
 
        sw      a1,12(a4)
 
        sw      a2,16(a4)
 
        sw      a3,20(a4)
 
        addi    a5,a5,24
 
        addi    a4,a4,24
 
        bne     a5,t2,.L2
 
        lw      a3,0(a5)
 
        lbu     a5,4(a5)
        li      a0,10
        li      a0,10
 
        sw      a3,0(a4)
 
        sb      a5,4(a4)
 
        li      a5,118
 
        sw      a5,4(sp)
        call    putchar
        call    putchar
        addi    s0,sp,4
        addi    a5,sp,8
.L2:
 
        lbu     a5,0(s0)
 
        bnez    a5,.L5
 
        lw      ra,284(sp)
 
        lw      s0,280(sp)
 
        lw      s1,276(sp)
 
        addi    sp,sp,288
 
        jr      ra
 
.L5:
 
        addi    s0,s0,2
 
        lbu     s1,-1(s0)
 
.L3:
 
        addi    s1,s1,-1
 
        li      a4,-1
 
        beq     s1,a4,.L2
 
        mv      a0,a5
 
        sw      a5,0(sp)
        sw      a5,0(sp)
 
        li      a4,14
 
        li      s0,32
 
.L7:
 
        lw      a5,0(sp)
 
        addi    s1,a4,-1
 
        addi    a5,a5,2
 
        sw      a5,0(sp)
 
        beqz    a4,.L6
 
.L3:
 
        mv      a0,s0
        call    putchar
        call    putchar
 
        addi    s1,s1,-1
 
        li      a5,-1
 
        bne     s1,a5,.L3
 
.L6:
 
        lw      a5,4(sp)
 
        beqz    a5,.L14
        lw      a5,0(sp)
        lw      a5,0(sp)
        j       .L3
        lw      s0,4(sp)
 
        lbu     a4,1(a5)
 
        lbu     a5,2(a5)
 
        sw      a5,4(sp)
 
        j       .L7
 
.L14:
 
        lw      ra,288(sp)
 
        lw      s0,284(sp)
 
        lw      s1,280(sp)
 
        addi    sp,sp,292
 
        jr      ra
        .size   banner, .-banner
        .size   banner, .-banner
        .section        .rodata.str1.4,"aMS",@progbits,1
        .section        .rodata.str1.4,"aMS",@progbits,1
        .align  2
        .align  2
.LC0:
.LC0:
        .ascii  " \016v \n\001 \022v\034\n\001"
        .ascii  " \016v \n\001 \022v\034\n\001"

powered by: WebSVN 2.1.0

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