rulimine/common/sys/sbi.asm_riscv64
2023-06-20 13:24:49 +02:00

17 lines
297 B
Plaintext

.section .text
.global sbicall
sbicall:
mv t0, a0
mv t1, a1
mv a0, a2
mv a1, a3
mv a2, a4
mv a3, a5
mv a4, a6
mv a5, a7
mv a7, t0
mv a6, t1
ecall
ret