syscall: imeplement basic file IO syscalls

also fix a bug where the RAX register would be restored to its initial
state instead of carrying the syscall return value
This commit is contained in:
Michael Shaw 2023-11-27 02:47:57 -05:00
commit 0297f4a34c
9 changed files with 209 additions and 18 deletions

View file

@ -36,3 +36,7 @@ $(OUT): $(OBJ)
clean:
@rm -rf $(OUT) $(OBJ) $(DEP)
install: $(OUT)
@cp $(OUT) ../../bin
@echo " INSTALL $(CURDIR)/$(OUT)"