// RUN: python3 -m riscemu -v %s | filecheck %s .data msg: .ascii "Hello world\n" .text addi a0, zero, 1 // print to stdout addi a1, zero, msg // load msg address addi a2, zero, 12 // write 12 bytes addi a7, zero, SCALL_WRITE // write syscall code scall addi a0, zero, 0 // set exit code to 0 addi a7, zero, SCALL_EXIT // exit syscall code scall // CHECK: Hello world // CHECK: [CPU] Program exited with code 0