aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/root.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig
index c5625d0..5063e4e 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -48,3 +48,9 @@ pub fn errorName(code: u16, buffer: []u8) !usize {
if (result.error_code != 0) return Error.Kernel;
return result.value;
}
+
+pub fn consoleWrite(bytes: []const u8) !usize {
+ const result = ecall(100001, .{ bytes.ptr, bytes.len });
+ if (result.error_code != 0) return Error.Kernel;
+ return result.value;
+}