VICE home Knowledge Base - Article 10-004


[Howto] How to convert BASIC files into PC-readable format


The information in this article applies to the following versions of VICE:

PROBLEMEXPOSITION

You have a BASIC program for any of the machines supported by VICE in one file. Anyway, if you open this file you don't get the source but some hieroglyphs.

CAUSE

Commodore used a "compressed" format for the BASIC program, where every BASIC command was stored in one byte only, and the line numbers where stored binary, too, primarily for speed reasons.

SOLUTION

Just use PETCAT (part of VICE) to convert the file into readable format: Try

if myprogram.prg is your runnable file, and myprogram.txt is a not yet used file which will hold the readable version of your file.

STATUS

This document is for information purpose only. The behaviour reported is intentional. This document applies to the VICE versions listed at the beginning of this article.

REVISION

Last Reviewed: September 18, 2002