From 2c42243d4c09c54bd6309ec325ff5df14a2ba022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kyle=20J=C2=A0Cardoza?= Date: Tue, 9 Jul 2024 00:42:09 -0400 Subject: [PATCH] Documentation of kernel API --- doc/syscalls.md | 15 +++++++++++++++ src/kernel/vera_font_0.ase | Bin 4086 -> 4074 bytes 2 files changed, 15 insertions(+) diff --git a/doc/syscalls.md b/doc/syscalls.md index cedb736..9b00ef4 100644 --- a/doc/syscalls.md +++ b/doc/syscalls.md @@ -434,4 +434,19 @@ This call attempts to create a `NULL`-terminated string with the path of the current directory in the drive with the volume name specified in the `drive` argument, and puts that string into the buffer pointed to by `dest`. On success, `C` will contain `STATUS_OK`. On failure, `C` will +containe a negative value indicating the error type. + + ## `0x18`: Set Current Directory + + Arguments: + - `C`: `0x18` + - `X`: Bank of string + - `Y`: Address of string + +Return Values: + - `C`: Status code + +This call attempts to change the current directory on a the drive specified +in the supplied `NULL`-terminated string to the directory listed in that +string. On success, `C` will contain `STATUS_OK`. On failure, `C` will containe a negative value indicating the error type. \ No newline at end of file diff --git a/src/kernel/vera_font_0.ase b/src/kernel/vera_font_0.ase index 00e6fb7f28b43926ffdf35bcd557f22c1334c835..906d9d6601d37e57d89e07b481cd4b657dae920a 100644 GIT binary patch delta 3879 zcmWO7i6hgC0|0Q6ywV!=96f2BFA*a*V-*z@UU{y>Qi>9bxy`<$@DfWza*Vu^ijgbl znw5o^D|5sQ<2kYmyZ8P5KL5mL6SfRfT+UVm6z^sydnxYD9^VHPW#r9$+Hn>Ng6`Of zs^4~%<{MUAnZhJIf8%w$alh}DtsjeaK6Or&uFG5LH^nTFf@PB0WV!ry(FFGqWE`*xMz!X$7n_K*G4XCrF3@8l@dDfZb8T+2`@ZfPxf8V&&z*fdr zpS?;PHBk$0ZukUPd^mPl^UapZn1zX9sf4?b7idb$kSL$*2WH?rmKA&gB5-G?AbLLJ zZGwAo6S5>y0|@N{CTZ0SlpNFo>q#)@iDv+oHDupTm%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