How to convert .BAS files to plain ASCII? (Development Foros MSX)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
                       
English Nederlands Español Português Russian                  
 Noticias
   Página principal
  Almacén de noticias
  Temas de noticias

 Recursos
   Foros MSX
  Artículos
  Analisis
  Informe de ferias/RUs
  Álbum de fotos
  Ferias y encuentros
  Encuestas
  Enlaces
  Buscar

 Software
   Descargas
  Tienda Online

 MRC
   Quiénes somos
  Únete a nuestro equipo
  Donar
  Políticas
  Contacta con nosotros
  Enlázanos
  Estadísticas

 Buscar
 
  

  

 Login
 

Login

Contraseña




¿Aún no tienes una cuenta? ¡Conviértete en miembro del MSX Resource Center! ¡Únete a nosotros!.


 Estadísticas
 

Hay 134 invitados y 1 miembro en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - How to convert .BAS files to plain ASCII?

Autor

How to convert .BAS files to plain ASCII?

dvik
msx master
Mensajes: 1302
Publicado: Mayo 12 2007, 04:58   
As the topic says, how can I convert .BAS files (basic) to ASCII (.TXT)?
Novo
msx friend
Mensajes: 14
Publicado: Mayo 12 2007, 06:15   
You can load them under MSX BASIC, and resave them using the A option: save"new_name",a
dvik
msx master
Mensajes: 1302
Publicado: Mayo 12 2007, 08:02   
Many thanks Novo. Worked great
NYYRIKKI
msx master
Mensajes: 1499
Publicado: Mayo 12 2007, 10:46   
If you work with tapes, then save with "SAVE" command instead of CSAVE.
Vincent van Dam
msx addict
Mensajes: 372
Publicado: Mayo 12 2007, 10:50   
...and if you are on another plaftorm you can use the list tool to detokenize the file.
dvik
msx master
Mensajes: 1302
Publicado: Mayo 12 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
Mensajes: 372
Publicado: Mayo 12 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
Mensajes: 3368
Publicado: Mayo 12 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
Mensajes: 1302
Publicado: Mayo 12 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
Mensajes: 3368
Publicado: Mayo 12 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
Mensajes: 1499
Publicado: Mayo 13 2007, 02:05   
1. Change the header.
2. Try PLAY() function.
 
 







(c) 1994 - 2008 Fundación MSX Resource Center. MSX es una marca registrada de MSX Licensing Corporation