http://user.tninet.se/~pug510w/datormus ... .html#port
http://user.tninet.se/~pug510w/datormuseum/optim.html
BASIC conversion into and out of VICE in UNIX
Moderator: Moderators
PRG Starter - a VICE helper / Vic Software (Boray Gammon, SD2IEC music player, Vic Disk Menu, Tribbles, Mega Omega, How Many 8K etc.)
-
- Vic 20 Devotee
- Posts: 270
- Joined: Mon Feb 04, 2008 6:06 am
I tried the printer but it gives me a empty (zero length) file. I tried the textport program and it worked. But during learning how to use text port I found the following:
load the file into VICE
type
OPEN1,8,1,"FILE"
CMD1:LIST
PRINT#1:CLOSE1
This will save the file as FILE.P00 or FILE.P01 if FILE.P00 exists etc
then you can run petcat on that file and it will give you the BASIC file
That works quite well
Thanks to Boray and e5frog for leading me to the answer I wanted
load the file into VICE
type
OPEN1,8,1,"FILE"
CMD1:LIST
PRINT#1:CLOSE1
This will save the file as FILE.P00 or FILE.P01 if FILE.P00 exists etc
then you can run petcat on that file and it will give you the BASIC file
That works quite well
Thanks to Boray and e5frog for leading me to the answer I wanted

Change is inevitable except from a vending machine.
- e5frog
- Vic 20 Nerd
- Posts: 551
- Joined: Sat Feb 17, 2007 5:46 pm
- Website: http://channelf.se
- Location: Sweden
- Occupation: Service Engineer
I think the printer file is 0 bytes until you close VICE and then open it.
My other interest: http://channelf.se
-
- Vic 20 Newbie
- Posts: 1
- Joined: Tue Nov 10, 2015 9:55 pm
- Website: http://maniac-games.com
- Location: Montreal
- Occupation: Game Programmer
Re: BASIC conversion into and out of VICE in UNIX
Got this from another post:
Code: Select all
c1541 imagename.d64 -extract
petcat -2 -o outputfile.txt -- inputfile.prg
- e5frog
- Vic 20 Nerd
- Posts: 551
- Joined: Sat Feb 17, 2007 5:46 pm
- Website: http://channelf.se
- Location: Sweden
- Occupation: Service Engineer
Re: BASIC conversion into and out of VICE in UNIX
I'm sure it could be helpful even if it's seven years later. 

My other interest: http://channelf.se