.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
hello honeydatax
i don't have risc v cpu but perhaps his might be helpful??
https://stackoverflow.com/questions/57228650/how-to-print-to-console-in-linux-from-risc-v-assembly (https://stackoverflow.com/questions/57228650/how-to-print-to-console-in-linux-from-risc-v-assembly)
thanks is wat im need :)