Schrijver
| How to convert .BAS files to plain ASCII?
|
dvik msx master Berichten: 1302 | Geplaatst: 12 Mei 2007, 04:58   |
As the topic says, how can I convert .BAS files (basic) to ASCII (.TXT)?
|
|
Novo msx friend Berichten: 14 | Geplaatst: 12 Mei 2007, 06:15   |
You can load them under MSX BASIC, and resave them using the A option: save"new_name",a
|
|
dvik msx master Berichten: 1302 | Geplaatst: 12 Mei 2007, 08:02   |
Many thanks Novo. Worked great  |
|
NYYRIKKI msx master Berichten: 1503 | Geplaatst: 12 Mei 2007, 10:46   |
If you work with tapes, then save with "SAVE" command instead of CSAVE.
|
|
Vincent van Dam msx addict Berichten: 372 | Geplaatst: 12 Mei 2007, 10:50   |
...and if you are on another plaftorm you can use the list tool to detokenize the file. |
|
dvik msx master Berichten: 1302 | Geplaatst: 12 Mei 2007, 18:25   |
Thanks for the replies. What I'm doing is trying to restore some of my very old basic programs (84-86). They are all saved on tapes but I want to move them to diskettes instead.
Two other questions related to the project that I'm sure you can answer.
1. How can I copy a .BIN file (bloadable) from cassette to diskette?
2. How can I know when a PLAY command is finished playing?
|
|
Vincent van Dam msx addict Berichten: 372 | Geplaatst: 12 Mei 2007, 20:00   |
Quote:
| 1. How can I copy a .BIN file (bloadable) from cassette to diskette?
|
A very useful tapetool to start with is 'TAPDIR' ( www.hansotten.com/msxtape.html); this will analyse the tape and displays besides what's on the tape, also the begin,end, and start adresses of binaries.
Without a diskdrive there is a lot more available memory in page 3, so you might need to use some additional tooling to be able to even load the entire file (let alone store it to disk). I don't have experience with these kind of tools. |
|
manuel msx guru Berichten: 3381 | Geplaatst: 12 Mei 2007, 20:00   |
You can also load the tokenized file in openMSX and llist (list to line printer) it, using the printer-logger, you get a text file on your PC
About 1.: get the addresses using a tool that reads them and then save the binaries block by block to disk. Only works if the block isn't so big that it overwrites the disk basic area.
|
|
dvik msx master Berichten: 1302 | Geplaatst: 12 Mei 2007, 20:12   |
@manuel: That was indeed a very good solution  (works in blueMSX as well). Didn't think of that one at all.
TAPDIR seems like the best solution for the bloadable files. Hopefully there are no overlap. Its been 20 years since I made the apps so I don't really remember  |
|
manuel msx guru Berichten: 3381 | Geplaatst: 12 Mei 2007, 20:18   |
TAPDIR is quite a popular one. I used one published in another magazine, which I can send you as well, if you like.
|
|
NYYRIKKI msx master Berichten: 1503 | Geplaatst: 13 Mei 2007, 02:05   |
1. Change the header.
2. Try PLAY() function.
|
|
|
|
|