BASIC conversion into and out of VICE in UNIX

You need an actual VIC.

Moderator: Moderators

User avatar
Boray
Musical Smurf
Posts: 4026
Joined: Mon May 03, 2004 10:47 am

Postby Boray » Sat Mar 29, 2008 4:30 am

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

Postby Richard James » Sat Mar 29, 2008 4:44 pm

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: 544
Joined: Sat Feb 17, 2007 5:46 pm
Website: http://channelf.se
Location: Sweden
Occupation: Service Engineer

Postby e5frog » Sun Mar 30, 2008 5:12 am

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

Postby almo » Tue Nov 10, 2015 9:56 pm

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: 544
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

Postby e5frog » Wed Nov 11, 2015 6:20 am

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


Return to “Emulation and Cross Development”

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests