From d5c36f00619152eeb9ba7d1e6ea9f84f443b6441 Mon Sep 17 00:00:00 2001 From: mebibytedraco <139500397+mebibytedraco@users.noreply.github.com> Date: Thu, 30 Nov 2023 00:59:25 -0500 Subject: [PATCH] Fix initialization of file_reserved in RYFS --- ryfs.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryfs.asm b/ryfs.asm index b52bb37..cf358e5 100644 --- a/ryfs.asm +++ b/ryfs.asm @@ -61,7 +61,7 @@ ryfs_open_found_dir_entry: mov.16 [r10], [r1] ; write file_first_sector add r10, 2 mov [r10], 0 ; write file_seek_offset - inc r10 + inc r10, 4 mov.8 [r10], 0 ; write file_reserved movz.16 r0, [r1] ryfs_open_end: