Jump to content

Atari BAS file to TXT conversion


8 replies to this topic

#1  

    Space Invader

  • 31 posts
  • Joined: 21-November 10
  • Location:stuck in a development hell.....:(

Posted Thu Dec 23, 2010 6:35 AM

Is there any converter that can convert BAS basic files from atari to PC TXT files and back again (PC/TXT ==> ATR/BAS) ? I have extracted BAS files from ATR image using MakeATR , but when I convert them using Atari800Win (atascii to ascii) it doesn;t make them into readable form. Any suggestions please?

#2 ONLINE  

    Quadrunner

  • 9,840 posts
  • Joined: 29-September 05
  • Location:Australia

Posted Thu Dec 23, 2010 6:45 AM

You have to use the ENTER/LIST commands.

SAVE/LOAD deals with programs in tokenised form.

Another easy way to deal with stuff is to just set the P: Virtual handler to use Notepad. Then you can just load a program, and LIST "P"

Then you can just cut/paste from the Notepad window that it opens up.


This won't really help for the Control character graphics - there aren't really direct Windows equivalents for those.

Edited by Rybags, Thu Dec 23, 2010 6:46 AM.


#3  

    Space Invader

  • 31 posts
  • Joined: 21-November 10
  • Location:stuck in a development hell.....:(

Posted Thu Dec 23, 2010 7:41 AM

View PostRybags, on Thu Dec 23, 2010 6:45 AM, said:

You have to use the ENTER/LIST commands.

SAVE/LOAD deals with programs in tokenised form.

Another easy way to deal with stuff is to just set the P: Virtual handler to use Notepad. Then you can just load a program, and LIST "P"

Then you can just cut/paste from the Notepad window that it opens up.


This won't really help for the Control character graphics - there aren't really direct Windows equivalents for those.

I will not be useing any special characters. No problem with that. OK, I have saved Basic program using Enter"d1:xxx.bas" - error showed 137 TRUNC. :(

#4 ONLINE  

    Quadrunner

  • 9,840 posts
  • Joined: 29-September 05
  • Location:Australia

Posted Thu Dec 23, 2010 7:52 AM

If you've used SAVE, you have to use LOAD. The pairs of commands aren't interchangable.

Just use that Notepad P: handler trick, it'll probably be the easiest way.

#5  

    River Patroller

  • 2,981 posts
  • Joined: 13-May 08
  • take on me!
  • Location:underground

Posted Thu Dec 23, 2010 7:53 AM

This thread has some info on memopad http://www.atariage....ge__hl__memopad :)

#6  

    Moonsweeper

  • 485 posts
  • Joined: 03-November 08
  • Location:Cleveland, Ohio

Posted Sat Dec 25, 2010 7:25 PM

View Postpsychonaut25, on Thu Dec 23, 2010 6:35 AM, said:

Is there any converter that can convert BAS basic files from atari to PC TXT files and back again (PC/TXT ==> ATR/BAS) ? I have extracted BAS files from ATR image using MakeATR , but when I convert them using Atari800Win (atascii to ascii) it doesn;t make them into readable form. Any suggestions please?
LOAD your .BAS SAVEd file and LIST FILE.LST to disk.
Now use something to extract the .LSTed file from the .ATR, like IMAGEMAN.COM for single dens DOS 2/2.5/MYDOS .ATRs on PC.
Now use a ATASCII to ASCII converter like my command line version, eg ata2asc2 FILE.LST makes a FILE.ASC.
Now you can edit in notepad and save your edited file to FILE2.ASC.
Then you can convert back to ATASCII with ASC2ATA2.EXE eg. asc2ata2 FILE2.ASC makes a FILE2.LST ATASCII.
Three programs here, all PC files. I also have a ATAS to ASC and ASC to ATAS for the A8, but seldom use them.

Attached Files



#7  

    Space Invader

  • 31 posts
  • Joined: 21-November 10
  • Location:stuck in a development hell.....:(

Posted Sun Dec 26, 2010 3:25 PM

View Postrussg, on Sat Dec 25, 2010 7:25 PM, said:

View Postpsychonaut25, on Thu Dec 23, 2010 6:35 AM, said:

Is there any converter that can convert BAS basic files from atari to PC TXT files and back again (PC/TXT ==> ATR/BAS) ? I have extracted BAS files from ATR image using MakeATR , but when I convert them using Atari800Win (atascii to ascii) it doesn;t make them into readable form. Any suggestions please?
LOAD your .BAS SAVEd file and LIST FILE.LST to disk.
Now use something to extract the .LSTed file from the .ATR, like IMAGEMAN.COM for single dens DOS 2/2.5/MYDOS .ATRs on PC.
Now use a ATASCII to ASCII converter like my command line version, eg ata2asc2 FILE.LST makes a FILE.ASC.
Now you can edit in notepad and save your edited file to FILE2.ASC.
Then you can convert back to ATASCII with ASC2ATA2.EXE eg. asc2ata2 FILE2.ASC makes a FILE2.LST ATASCII.
Three programs here, all PC files. I also have a ATAS to ASC and ASC to ATAS for the A8, but seldom use them.
Thank you. Helped. Now I have my Basic BAS file converted in TXT format.

#8  

    Sheik Yerbouti

  • 20,367 posts
  • Joined: 24-June 01
  • Location:The land of Gorch

Posted Sun Dec 26, 2010 11:58 PM

Since you are using Atari800Win, you could just use it's hard drive patch to LIST your program in memory to the H: device.

Similarly, you can use ENTER within the emulated Atari BASIC to import a text file from the H: drive. This is useful, since you can just copy/paste archived program listings from web pages, scanners, etc...into a text file without needing to code any of it by hand except carriage returns...which would need to be changed to › (character code 125).

#9 ONLINE  

    Dragonstomper

  • 839 posts
  • Joined: 27-July 06
  • Location:Arizona USA

Posted Mon Dec 27, 2010 12:39 AM

NOT (character code 125).




[character code 155).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users