aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/hello_world/src/main.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/hello_world/src/main.zig b/examples/hello_world/src/main.zig
index f2520d0..6f1b546 100644
--- a/examples/hello_world/src/main.zig
+++ b/examples/hello_world/src/main.zig
@@ -15,4 +15,9 @@ pub fn main() void {
: [s] "{a0}" (s.ptr),
[n] "{a1}" (s.len),
);
+
+ asm volatile (
+ \\ li a7, 100003
+ \\ ecall
+ ::: "a7");
}