[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DOS 3.3 command interpreter accessible from ML?
- Subject: Re: DOS 3.3 command interpreter accessible from ML?
- From: dcross1@nospam.home.com (David Cross)
- Date: 1998/08/14
- Newsgroups: comp.sys.apple2
- Organization: @Home Network Canada
- References: <6r01qj$sfb$1@news.NERO.NET>
In article <6r01qj$sfb$1@news.NERO.NET>, summersb@ucs.orst.edu says...
>
>
>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?
Actually, it was in fact that easy.
An even easier way to do it is to use the $DB3A routine which outputs a string
that is terminated with a $22 or a $00.
I just forget which registers you need to load in order to properly tell $DB3A
where to "look" when you JSR.