From cf591b2d73c71baea8430a7a8cab0d54ec2cf9bd Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 17 Aug 2015 10:48:27 -0400 Subject: [PATCH] get_mark, get_eof --- Makefile | 2 +- fst.macros | 3 +- get_eof.aii | 75 ++++++++++++++++++++++++++++++++++++++++++++++ get_mark.aii | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++ records.equ | 34 +++++++++++++++++++++ stubs.aii | 2 -- tables.aii | 4 +-- 7 files changed, 199 insertions(+), 6 deletions(-) create mode 100644 get_eof.aii create mode 100644 get_mark.aii 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