Adds fopen(), fwrite(), fclose()

This commit is contained in:
2025-06-25 09:38:42 +02:00
parent 9d265e3db6
commit fbea8d0322
7 changed files with 181 additions and 9 deletions

View File

@ -1,5 +1,5 @@
tests: tests.o constants.o core.o console.o string.o
gcc tests.o constants.o core.o console.o string.o -o tests -no-pie -z noexecstack
tests: tests.o constants.o core.o console.o string.o file.o
gcc tests.o constants.o core.o console.o string.o file.o -o tests -no-pie -z noexecstack
tests.o: tests.asm
nasm tests.asm -f elf64 -l tests.lst -g -F dwarf
constants.o: constants.asm
@ -10,6 +10,8 @@ console.o: console.asm
nasm console.asm -f elf64 -l console.lst -g -F dwarf
string.o: string.asm
nasm string.asm -f elf64 -l string.lst -g -F dwarf
file.o: file.asm
nasm file.asm -f elf64 -l file.lst -g -F dwarf
clean:
rm -f tests *.lst *.o
rm -f tests *.lst *.o testFile1.txt