[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DOS 3.3 command interpreter accessible from ML?
David Empson wrote:
>
> The DOS 3.3 one is, and you can access it via faking a PRINT command.
> Some commands are only available if the machine code routine was CALLed
> from within a running BASIC program (notably the text file commands such
> as OPEN, READ, etc.)
Yes, but you can fool the computer into thinking that a Basic program is
running, by poking zero into the high byte of the line number location.
(Forget which address that is, and I don't have an Apple with me to try
that out, sorry.)
> The only catch (which affects BASIC as well as machine code) is that DOS
> will only recognise the Ctrl-D character if it is the first one in an
> output line. You might need to send a Ctrl-M (carriage return) first.
> If I remember right, you can avoid this by poking zero into the cursor
> horizontal position ($24).
No. DOS remembers if the last character sent was a CR. So you should
trick DOS into thinking that it was, by putting some value into the
location that DOS checks. (Again, I forget which it was, but is it a
location used by DOS, not the CH location of the monitor. Can anybody
fill in the blanks?)
Pim Blokland
sorry, no e-mail.