[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DOS 3.3 command interpreter accessible from ML?



Benjamin Summers (summersb@ucs.orst.edu) wrote:

: I was wondering if the DOS 3.3 command interpreter (i.e. the one you issue
: commands to from the ] prompt or with a chr$(4) from BASIC) is accessible
: from machine language routines.  Specifically, I was wondering if you can
: access the interpreter via the COUT routine by first sending it the ASCII
: code 4 followed by the ASCII characters for a DOS command.  Can anyone help
: me out?

Under DOS 3.3, that is EXACTLY how you do it.

Be aware that if you are working with TEXT file commands, this can result
in the annoying NOT DIRECT COMMAND error unless you change the prompt
character byte (sorry, I don't remember where that is) OR you call the
6502 routine from an Applesoft program (or at least while an Applesoft
program is running).

--Dave Althoff, ][.
-- 
    /^\        _       _              ***  Now open EVERY DAY!!!  ***
   /XXX\      /X\     /X\_      _     /X\__      _     _        _____  
  /XXXXX\    /XXX\  _/XXXX\_   /X\   /XXXXX\    /X\   /X\      /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_/XXXXXXX\__/XXX\_/XXX\_/\_/XXXXXX