diff --git a/Makefile b/Makefile index e39d84e..1beb7e4 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ SOURCES = main.aii volume.aii get_file_info.aii \ - open.aii get_dir_entry.aii close.aii \ + open.aii get_dir_entry.aii get_mark.aii get_eof.aii close.aii \ id_disk.aii stubs.aii tables.aii device.aii params.aii data.aii OBJECTS=$(SOURCES:.aii=.o) diff --git a/fst.macros b/fst.macros index cf5c25c..7c10aa7 100644 --- a/fst.macros +++ b/fst.macros @@ -260,4 +260,5 @@ rts @ok - mend \ No newline at end of file + mend + diff --git a/get_eof.aii b/get_eof.aii new file mode 100644 index 0000000..86b2b8f --- /dev/null +++ b/get_eof.aii @@ -0,0 +1,75 @@ + + string asis + + include 'gsos.equ' + include 'minix.equ' + include 'fst.equ' + + include 'fst.macros' + + include 'M16.Debug' + + include 'records.equ' + + + import do_eof + import do_ignore + import init_fcr + +get_eof procname export + + with dp, fst_parms + + jsr init_fcr + + lda disk_inode.mode + and #S_IFMT + cmp #S_IFREG + beq ok + cmp #S_IFLNK ; ehh + beq ok + + lda #bad_store_type + sec + rtl +ok + + + lda