Jump to content
IGNORED

Using SAVE to save BASIC files to D1 but get ERROR-


bullmuscle

Recommended Posts

Hi, I loaded Atari800Win Lite4 and have it configured to typical settings. I have setup and activated Drive 1 (D1) with a virtual formatted .atr.

 

I am getting "ERROR- SAVE D1: TEST.BAS" when I try to save a file to D1.

 

Am I doing something wrong?

 

Let me know

 

Thanks

 

Joe

:?

post-38686-0-35882000-1394437995_thumb.jpg

post-38686-0-07006900-1394438001_thumb.jpg

Link to comment
Share on other sites

Hello guys

 

Try with quotation marks:

 

SAVE "D1:TEST.BAS"

 

Please note that you also need DOS to be loaded.

 

I'm not sure if it works with every DOS, but you can often leave the last quotation mark off. In that case SAVE "D1:TEST.BAS should do the trick

 

Sincerely

 

Mathy

Link to comment
Share on other sites

I'm not sure if it works with every DOS, but you can often leave the last quotation mark off. In that case SAVE "D1:TEST.BAS should do the trick

 

That's not a matter of the DOS, but a matter of the BASIC interpreter, and Atari Basic requires at least a single double quote in front of the D, i.e.

 

SAVE "D1:TEST.BAS

 

does the trick.

 

However, there is a popular version of a basic extension, DISKIO (Os++ comes with a version of it) which allows you to ommit the quotes, and the D:. That is, with DISKIO loaded, the above simplifies to

 

SAVE TEST.BAS

 

However, as said, this is a BASIC extension and not part of Atari Basic as it comes.

Link to comment
Share on other sites

for lazy fingers:

S."D:TEST.BAS

(The BASIC Interpreter looks for the first shortcut that fits S., which is the SAVE command.

Commands later placed in the BASIC-ROM need more than one letter to be specified exactly, like e.g. SE. => SETCOLOR).

 

The quots are obligatory in BASIC, cuz SAVE is a commant that wants a string as an argument (except you have those extensions which most of us don't have).

So you also can do it like that:

DIM F$(15):F$="D1:TEST.BAS":SAVE F$

Same is for LOAD or RUN files:

LOAD "D1:TEST.BAS"

and

RUN "D1:TEST.BAS"
Edited by atarixle
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...