News:

Welcome to RetroCoders Community

Main Menu

risc-v assembly

Started by honeydatax, Aug 04, 2022, 06:01 PM

Previous topic - Next topic

honeydatax

.section .rodata
prompt: .asciz "Value of t0 = %ld and value of t1 = %ld\n"
.section .text
myfunc:
    addi    sp, sp, -8
    sd      ra, 0(sp)
    la      a0, prompt
    mv      a1, t0
    mv      a2, t1
    call    printf
    ld      ra, 0(sp)
    addi    sp, sp, 8
    ret


im tring to print f my msg wat is worng on my risc v? thanks

ron77


honeydatax

thanks is wat im need :)