ecall

Environment call (system call)

Executes the system call specified by the value in a7.

RISC-V manual: ecall

Used in

Forms

  • ecall
# Simulator service 1 prints the integer in a0. This ecall prints 42.
.text
li a7, 1
li a0, 42
ecall