From 3d67440817cfed11e1f87aea1a5294cae4a54108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kyle=20J=C2=A0Cardoza?= Date: Tue, 9 Jul 2024 00:23:28 -0400 Subject: [PATCH] Documentation of kernel API --- doc/syscalls.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/syscalls.md b/doc/syscalls.md index aa91519..6661dd3 100644 --- a/doc/syscalls.md +++ b/doc/syscalls.md @@ -390,3 +390,23 @@ Argument Structure: This call attempts to move or rename the specified `source` file to `dest`. On success, `C` will contain `STATUS_OK`. On error, `C` will contain a negative value indicating the specific error. + +# `0x16`: Set File Attributes + +Arguments: + - `C`: `0x16` + - `X`: File handle + - `Y`: File attribute bitmask + +Return Values: + - `C`: Status code + + This call alters the file attributes of the specified file. The `Y` register should + contain the result of a bitwise OR operation on any or all of the following values: + + - `FILE_READ_ONLY` + - `FILE_HIDDEN` + - `FILE_SYSTEM` + - `FILE_ARCHIVE` + + Passing `0x0000` in the `Y` register will clear all attributes. \ No newline at end of file