[comp.sys.apple] passing DOS 3.3 commands in machine language

DANFUZZ@BROWNVM.BITNET (Dan Bornstein) (02/13/89)

There's the easy way and the nice way: The easy way is to use the character
output hook ($FDED) and send the same sequence that you would from BASIC. ex:
ctrl-d "CATALOG" ctrl-m   to get a catalog. When doing this though, you've got
to set the run-flag in DOS (I don't remember the location off-hand), so that
user input won't be interpreted as commands.
    The nicer way is to use DOS's internal routines. Since DOS 3.3 is stable
at this point, this is better than the above way since you skip the
"interpretation" step (and string-formation step on the side of your program).
I highly reccomend "Beneath Apple DOS," since this book gives detailed
descriptions about the workings of DOS 3.x, including reams of entry points.


-dan

BitNet:   DanFuzz@BrownVM.BITNET
EtherNet: Find me a long enough cable and I'll see what we can do.