Printing Basic listings from VICE emulator

Everything you ever wanted to know about emulators and interpreters - but were afraid to ask.

Moderator: Alastair

Post Reply
Message
Author
Denk
Posts: 49
Joined: Mon Nov 23, 2020 3:43 pm
Location: Hjørring, Denmark

Printing Basic listings from VICE emulator

#1 Post by Denk » Fri Jun 16, 2023 11:25 am

Hi, I am trying to inspect some of the BASIC games by Paul Allen Panks and it would make things a whole lot easier if there was a way to print a BASIC listing from VICE to e.g. pdf so I could then search for terms in the pdf.

I see there are some printer options in VICE but I have no idea on how to use them. I am interested in both C128 and C64 mode.
thanks!

Alastair
Posts: 1057
Joined: Fri Nov 11, 2005 12:21 am

Re: Printing Basic listings from VICE emulator

#2 Post by Alastair » Fri Jun 16, 2023 10:12 pm

Given that printing on a C64 is rather convoluted (thanks to Jack Tramiel refusing to pay any more money to Microsoft) the best I can offer is to point you to the relevant section in the VICE manual:

https://vice-emu.sourceforge.io/vice_5.html#SEC81

Denk
Posts: 49
Joined: Mon Nov 23, 2020 3:43 pm
Location: Hjørring, Denmark

Re: Printing Basic listings from VICE emulator

#3 Post by Denk » Sun Jun 18, 2023 2:38 pm

Thanks, that worked very well for the VICE c64 emulator x64.

For some reason I can't get it to work with the VICE c128 emulator x128.exe, not even in c64 mode.

I wonder if the output file is just put somewhere else and I don't know where to look. I tried resetting to default settings but that did not help. Any advice is welcome.

After selecting printer 4 I used:
open 4,4
cmd4:list
close4

User avatar
Garry
Posts: 474
Joined: Sun Oct 28, 2012 11:43 am
Location: Sydney, Australia
Contact:

Re: Printing Basic listings from VICE emulator

#4 Post by Garry » Fri Oct 13, 2023 4:32 pm

I have another suggestion. Firstly, download DirMaster. (The following is from my notes.)

To export a BASIC program to a text file:
Open DirMaster.
Choose Disk > Open.
Select file type (typically *.d64 for disk, *.t64 for cassette).
Navigate to disk or cassette image.
Select it and click Open.
Right-click on the BASIC file.
Choose View file > BASIC.
Right click on the BASIC listing.
Choose Export.
Select file type of PETSCII (*.seq).
Select Export as BasText.
Navigate to folder.
Enter file name.
Click Save.
Optionally, rename file from .seq to .bas once saved.

Denk
Posts: 49
Joined: Mon Nov 23, 2020 3:43 pm
Location: Hjørring, Denmark

Re: Printing Basic listings from VICE emulator

#5 Post by Denk » Mon Nov 13, 2023 1:34 pm

Thanks - I already have DirMaster but I had never used it for BASIC listings. Works like a charm :D

Post Reply