I am writting a bootstrapper, for lack of a better word, for CommoDOS (my new project). I made the first file on disk be "LOADER", which collects info and then runs "COMMODOS WEDGE". That runs, and then loads "COMMODOS RAMDISK". That runs, and then loads "1764DOS" (will be later called "COMMODOS").
The only problem is that this isn't working so well. From a clean boot, I type 'LOAD "*",8', and the loader is put into memory. I type "RUN". It executes, asking me what drive number it is in - I tell it "8", and it proceeds to load the wedge into memory. I did this using the same commands I would use in BASIC, but with variables so the user is prompted for which disk the program is on, i.e.,
It errors out on one of the first few lines, and when I list that line something is always weird (a character or two from another line is in that line, and some of it is missing). If I list the whole program, I find that only five lines or so are there, the rest isn't loaded, thus the error. If I load the program with the exact same commands from BASIC myself, it works fine. I can only assume that LOAD or RUN behave differently when a program calls them than when a user does.
Please explain this difference, or any ideas or workarounds you may have.
Thank you!
Edit:
If the complete source of any of these files would help you help me, just ask and I'll xfer them over using my XM cable and post them in a pastebin or on here.
The only problem is that this isn't working so well. From a clean boot, I type 'LOAD "*",8', and the loader is put into memory. I type "RUN". It executes, asking me what drive number it is in - I tell it "8", and it proceeds to load the wedge into memory. I did this using the same commands I would use in BASIC, but with variables so the user is prompted for which disk the program is on, i.e.,
INPUT "WHAT DRIVE IS THIS";D
LOAD "COMMODOS WEDGE",D
RUN
It errors out on one of the first few lines, and when I list that line something is always weird (a character or two from another line is in that line, and some of it is missing). If I list the whole program, I find that only five lines or so are there, the rest isn't loaded, thus the error. If I load the program with the exact same commands from BASIC myself, it works fine. I can only assume that LOAD or RUN behave differently when a program calls them than when a user does.
Please explain this difference, or any ideas or workarounds you may have.
Thank you!
Edit:
If the complete source of any of these files would help you help me, just ask and I'll xfer them over using my XM cable and post them in a pastebin or on here.