BASIC conversion into and out of VICE in UNIX

You need an actual VIC.

Moderator: Moderators

Boray
Musical Smurf
Posts: 4064
Joined: Mon May 03, 2004 10:47 am

Post by Boray »

PRG Starter - a VICE helper / Vic Software (Boray Gammon, SD2IEC music player, Vic Disk Menu, Tribbles, Mega Omega, How Many 8K etc.)
Richard James
Vic 20 Devotee
Posts: 269
Joined: Mon Feb 04, 2008 6:06 am

Post by Richard James »

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 :)
Change is inevitable except from a vending machine.
User avatar
e5frog
Vic 20 Nerd
Posts: 551
Joined: Sat Feb 17, 2007 5:46 pm
Website: http://channelf.se
Location: Sweden
Occupation: Service Engineer

Post by e5frog »

I think the printer file is 0 bytes until you close VICE and then open it.
My other interest: http://channelf.se
almo
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

Post by almo »

Got this from another post:

Code: Select all

c1541 imagename.d64 -extract
petcat -2 -o outputfile.txt -- inputfile.prg 
User avatar
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

Post by e5frog »

I'm sure it could be helpful even if it's seven years later. ;-)
My other interest: http://channelf.se
Post Reply