From 5fecde7eef75310ec911b00f0487b006cfcdc476 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Tue, 5 Dec 2017 20:30:55 -0800 Subject: [PATCH] Update sane to use new fileio API --- src/libsrc/fileio.pla | 10 +--------- src/libsrc/sane.pla | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/libsrc/fileio.pla b/src/libsrc/fileio.pla index f1f03a1..9d0c7e2 100644 --- a/src/libsrc/fileio.pla +++ b/src/libsrc/fileio.pla @@ -59,10 +59,6 @@ word = @a1newline, @a13readblock, @a13writeblock // export byte perr // -// ProDOS default system buffer -// -word iobuf = $0000 -// // ProDOS/SOS routines // def a1getpfx(path) @@ -127,13 +123,9 @@ def a1open(path) end def a2open(path) byte params[6] - - if !iobuf - iobuf = sysbuf - fin params.0 = 3 params:1 = path - params:3 = iobuf + params:3 = sysbuf params.5 = 0 perr = syscall($C8, @params) return params.5 diff --git a/src/libsrc/sane.pla b/src/libsrc/sane.pla index cb0d09c..a04805e 100644 --- a/src/libsrc/sane.pla +++ b/src/libsrc/sane.pla @@ -703,7 +703,7 @@ def loadcode(codefile) //puts(codefile); puts(":\n") pcode = 0 - ref = fileio:open(codefile, sysbuf) + ref = fileio:open(codefile) if ref pcode = heapmark fileio:read(ref, pcode, 512)