Article View: net.micro.trs-80
Article #591Re: Source for TRSDOS
From: gene
Date: Wed, 18 Jun 1986 21:43
Date: Wed, 18 Jun 1986 21:43
41 lines
2254 bytes
2254 bytes
> An addition to the following request:
>
Speaking of which, does anyone know how the TRSDOS system calls
(on disk, NOT the ROM calls) work? I've been going freaky trying
to get my program to simply copy from one file to another, later
to become a few filter routines. I've gotten as far as opening
both files (specified in the command line), checking the syntax,
reporting any errors that might occur, etc, but I have _not_
been able to even get a physical record into RAM.
Since the TRSDOS 1.3 manual doesn't have any sample programs that
are of any help, I decided to try to find the source code and
figure it out for myself.
Do any AL wizzes know how to do it? For my purposes, I am dealing
with physical records from the disk (not logical records), with
the LRL (logical record length) being 256 bytes (a disk sector).
Everything assembles just fine, with a clean exit to the DOS,
except that the newly-created file has nothing written out!
A "hunch" tells me that somehow the $POSN routine has to be called
after/before every $READ and/or $WRITE. Any clues???
By the way, if I get the basic filters working, I'd be glad to
share them on the net. As an enticement, think about using
Scripsit or SuperScripsit (ASCII file output) to edit a BASIC
file, EDTASM file, etc. Using BASIC to filter out a long file
takes just about years for a substantial file. I found out that's
the only way to mask out eighth_bits, entab/detab, and so on.
Doing it in AL will kill that time to practically nothing.
Like I said, just ask, and ye shall receive. For now, I guess I
have to do the asking...
Usenet (UUCP) Address:
harvard!cmcl2\
{ihnp4 | seismo}!allegra>!phri!cooper!gene
columbia/
philabs/
Technical Details
Message-ID:
<409@cooper.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!decvax!decwrl!pyramid!pesnta!phri!cooper!geneReferences:
<1927@calmasd.CALMA.UUCP> <1012@ihlpl.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!pyramid!pesnta!phri!cooper!gene From: gene@cooper.UUCP Newsgroups: net.micro.trs-80 Subject: Re: Source for TRSDOS Message-ID: <409@cooper.UUCP> Date: Wed, 18-Jun-86 17:43:12 EDT Article-I.D.: cooper.409 Posted: Wed Jun 18 17:43:12 1986 Date-Received: Fri, 20-Jun-86 01:05:25 EDT References: <1927@calmasd.CALMA.UUCP> <1012@ihlpl.UUCP> Distribution: na Organization: The Cooper Union (NY, NY) Lines: 41