Start writing file functions

This commit is contained in:
2025-07-24 14:56:12 +02:00
parent 19cea5642b
commit fc297959ab
6 changed files with 152 additions and 0 deletions

17
file.asm Normal file
View File

@@ -0,0 +1,17 @@
%include "src/constants.asm"
section .rodata
section .bss
section .text
global fexist
;----- fexist(*file[]) -----;
; Checks if given file exists
; Return value: 1 if file exists, 0 otherwise
; Used registers:
; rax* (ret)
fexist:
xor rax, rax