PDA

View Full Version : BASIC Save strangeness



ewige
April 27th, 2011, 07:10 AM
So yesterday I finally got around to playing with BASIC on my IBM 5155 again, and I wrote some nice code and decided to save my work. I typed SAVE "TEST" and the program just hung for like a good 2 minutes and then came back with the error "Disk not Ready"

I frowned and tried SAVE "C:\TEST" and also with the ,A option, but no dice. Always the same error, Disk not Ready. I tried SAVE "A:\TEST" and got a device I/O error...

I tried this both in BASIC and BASICA under DOS 3.3 with the same results. Has anyone encountered this beast before?

The hard disk in question is obvious working (since I was able to boot from C: in the first place and have played dozens of games on it and written other files to it) but just for completeness sake: it's an SD adapter going to XTIDE in an otherwise stock (to my knowledge) IBM 5155 running DOS 3.3.

Agent Orange
April 27th, 2011, 07:19 AM
So yesterday I finally got around to playing with BASIC on my IBM 5155 again, and I wrote some nice code and decided to save my work. I typed SAVE "TEST" and the program just hung for like a good 2 minutes and then came back with the error "Disk not Ready"

I frowned and tried SAVE "C:\TEST" and also with the ,A option, but no dice. Always the same error, Disk not Ready. I tried SAVE "A:\TEST" and got a device I/O error...

I tried this both in BASIC and BASICA under DOS 3.3 with the same results. Has anyone encountered this beast before?. . .
The hard disk in question is obvious working (since I was able to boot from C: in the first place and have played dozens of games on it and written other files to it) but just for completeness sake: it's an SD adapter going to XTIDE in an otherwise stock (to my knowledge) IBM 5155 running DOS 3.3.Try 'SAVE C:\TEST.BAS" and see what happens

ewige
April 27th, 2011, 07:28 AM
Ah, yes, I did try a save with extension as well. Same deal, unfortunately.

deathshadow
April 27th, 2011, 09:11 AM
I've seen that behavior in the past when using ROM basic on older IBM's with IDE controllers. Many old PC ROM's like Basic rely on the disk rom having it's calls in exactly the right memory locations as they'll call them directly instead of using the ISR. For xt-ide to not work on such a platform isn't exactly surprising...

Try finding a copy of the non-ROM reliant GW-Basic (from MS-DOS instead of PC-DOS) and try that instead -- it's generally better behaved on things like that.

ewige
April 27th, 2011, 09:17 AM
Thanks for the heads up! I'll look into GW-Basic as a solution.

carlsson
April 27th, 2011, 01:12 PM
I was thinking in the same direction as Deathshadow, but if there is a problem with ROM calls, why didn't save to floppy disk work? Would each floppy disk controller allocate different ROM areas so BASIC or BASICA only works with certain floppy drive controllers?

ewige
April 27th, 2011, 05:56 PM
Running GWBASIC worked like a charm! Was able to save to the hard disk no problem. Thanks again!