From c043316fa122cc8632ea56b1aeec26ae28f4b236 Mon Sep 17 00:00:00 2001 From: Ry Date: Fri, 20 Jan 2023 18:53:16 -0800 Subject: [PATCH] Implement RYFS write support in the VFS --- kernel/vfs.asm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/vfs.asm b/kernel/vfs.asm index 31c1ab5..f45b766 100644 --- a/kernel/vfs.asm +++ b/kernel/vfs.asm @@ -90,7 +90,6 @@ stream_read: ret ; write specified number of bytes into the specified file -; this only supports writing to streams, RYFS is currently read-only ; inputs: ; r0: number of bytes to write (ignored if file struct is a stream) ; r1: pointer to file struct @@ -105,7 +104,7 @@ write: pop r1 cmp.8 r3, 0x00 ifz pop r3 - ifz ret + ifz jmp ryfs_write cmp.8 r3, 0x01 ifz pop r3 ifz jmp stream_write