Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!think!snorkelwacker!bu.edu!m2c!wpi!greyelf From: greyelf@wpi.wpi.edu (Michael J Pender) Newsgroups: comp.sys.apple2 Subject: Re: ProDos from machine language Message-ID: <9952@wpi.wpi.edu> Date: 21 Mar 90 04:38:29 GMT References: <1990Mar20.053133.16783@agate.berkeley.edu> <1990Mar20.224015.25922@agate.berkeley.edu> Reply-To: greyelf@wpi.wpi.edu (Michael J Pender) Distribution: usa Organization: Worcester Polytechnic Institute, Worcester ,MA Lines: 28 In article <1990Mar20.224015.25922@agate.berkeley.edu> archie@brahms.berkeley.edu writes: >I apologize for not making this clearer. I don't want to deal with MLI or >anything. I want to be able to take a BASIC.SYSTEM command such as >"CATALOG /RAM" or whatever and send that string directly to ProDos (running >under BASIC.SYSTEM) and have it deal with interpreting it. I understood. From the Prodos 8 technical Reference Guide, all you have to do is place the desired basic command in the input buffer at $200, an ascii string with high bits set, and should end with a carriage return, just the way getln would leave it. Then JSR $BE03 (known as DOSCMD). If the carry is set an error occurred and the error type (basic system error number) is returned in the accumulator. Please note, not all commands work properly this way, some of the ones that DON'T work include run, -, load, chain, read, write, append and exec, they might not return to the assembler program. The ones that do work are cat, catalog, prefix, create, rename, delete, lock, unlock, save, store, restore, pr#, in#, fre, open close, flush, position, brun, bload, and bsave. --- Michael J Pender Jr Box 1942 c/o W.P.I. W.O.S. is not dead. greyelf@wpi.bitnet 100 Institute Rd. ...its time to get started, greyelf@wpi.wpi.edu Worcester, Ma 01609 there is much to be done. If my next computer isn't a IIgs, it won't be an apple... Me.