phoney Posted September 30, 2023 Share Posted September 30, 2023 I just wrote a BASIC program on my Mac in BBEdit and wanted to transfer it to my Atari. I saved it to a text file with a .BAS extension, created a new ATR in Atari800MacX, used the ATR editor to put the .BAS file on the ATR (5 sectors!), went into Atari800MacX BASIC to test it, but when I try to LOAD the file I get an ERROR - 19 in BASIC. That tells me something in the format of the file is wrong and maybe it isn't seeing the EOF. What's the best practice here in terms of getting my .BAS file into proper Atari readable format? Eventually I want to run it on my 800 via Fujinet, of course. Quote Link to comment Share on other sites More sharing options...
dmsc Posted September 30, 2023 Share Posted September 30, 2023 Hi! 31 minutes ago, phoney said: I just wrote a BASIC program on my Mac in BBEdit and wanted to transfer it to my Atari. I saved it to a text file with a .BAS extension, created a new ATR in Atari800MacX, used the ATR editor to put the .BAS file on the ATR (5 sectors!), went into Atari800MacX BASIC to test it, but when I try to LOAD the file I get an ERROR - 19 in BASIC. That tells me something in the format of the file is wrong and maybe it isn't seeing the EOF. What's the best practice here in terms of getting my .BAS file into proper Atari readable format? Eventually I want to run it on my 800 via Fujinet, of course. Atari BASIC uses a binary file, with the tokenized source. You can use my basic parser at https://github.com/dmsc/tbxl-parser to convert your source file to a BAS file. Remember to use the "-A" option to limit it to Atari BASIC syntax (instead of Turbo Basic XL). Have Fun! 1 Quote Link to comment Share on other sites More sharing options...
phoney Posted September 30, 2023 Author Share Posted September 30, 2023 Just to check, the file opens in the APX MEDIT program. I even opened it in APX MEDIT, edited it a little, and resaved it, just to check on the file structure. Still ERROR - 19 when I try to load it in BASIC. Quote Link to comment Share on other sites More sharing options...
phoney Posted September 30, 2023 Author Share Posted September 30, 2023 Just now, dmsc said: Hi! Atari BASIC uses a binary file, with the tokenized source. You can use my basic parser at https://github.com/dmsc/tbxl-parser to convert your source file to a BAS file. Remember to use the "-A" option to limit it to Atari BASIC syntax (instead of Turbo Basic XL). Have Fun! OH! Thank you! Quote Link to comment Share on other sites More sharing options...
Roydea6 Posted September 30, 2023 Share Posted September 30, 2023 34 minutes ago, phoney said: saved it to a text file When a file will not load I try to enter it. Quote Link to comment Share on other sites More sharing options...
+Allan Posted September 30, 2023 Share Posted September 30, 2023 @phoneyWith Atari800MacX emulator, you can cut and paste a program (text) right into Basic. Open the BASIC cartridge in the emulator and paste it in. When you paste it in, make sure the emulator is set at full speed so it does it faster. Then you can set it back to normal speed. Quote Link to comment Share on other sites More sharing options...
phoney Posted September 30, 2023 Author Share Posted September 30, 2023 Thank you all! I am up and running! Quote Link to comment Share on other sites More sharing options...
phoney Posted September 30, 2023 Author Share Posted September 30, 2023 Oh my God, Atari BASIC is primitive. I'm going to debug this thing on Altirra before transferring it over again. Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted October 1, 2023 Share Posted October 1, 2023 (edited) 15 hours ago, phoney said: Still ERROR - 19 when I try to load it in BASIC. That error is "Load Program too long", how big is the program, what size memory in your setup ? Atari Error Codes.bmp Edited October 1, 2023 by TGB1718 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.