• Please review our updated Terms and Rules here

Convert T64 file

GeoffB17

Veteran Member
Joined
Jun 8, 2016
Messages
578
Location
Guisborough, England
Hello,

I don't know anything about Commodore systems.

I've downloaded a .T64 file which I understand contains the BASIC code for an Adventure Game 'The Revenge of Balrog'. I can examine the contents of the file, and a lot of the code looks like the correct code, so the literal text matches, literal numbers match, but the data looks like tokenised BASIC so key words and line numbers are binary rather than literal text.

Is there any way to convert such a file to literal text/ASCII BASIC? I'd need to run any prog on a PC, DOS or WinDoze. There may be other ancient adventures available in the samr format?

Thanks for any hints.

Geoff
 
You could run the program inside an emulator. Otherwise, I hope it runs on the C64 BASIC implementation on Windows or you will be facing a long process rewriting the BASIC program into the different BASIC dialect you prefer.

https://sourceforge.net/projects/cbmbasic/

Detokenizers:
https://www.vintagecomputer.net/commodore/64/TOK64/
https://www.commodoreserver.com/Downloads.asp

I will leave someone else to recommend a tool to extract a file from a T64 image. http://droid64.sourceforge.net/ looks promising but I haven't used it.
 
Thanks for the info.

I've got the cbmbasic installed, and it does something.

I note it requires upper case only. AARGH?

Not found the command to exit the prog yet!

When I enter LOAD "REVOFBAL.T64" it seems to do something, i.e. other than say SYNTAX ERROR.

It says Loading from $0801 to $37AD, but I'm not sure if this means the BASIC is loaded, or if I can now SAVE (as ASCII) which would help. Saying RUN does not seem to do anything.

I guess I need 'CBM BASIC FOR BEGINNERS'

Geoff
 
I think it is necessary to extract the program from the T64 archive before passing it to cbmbasic. Have you tried loading the T64 from a C64 emulator?

I suspect with most complex C64 BASIC programs with the high reliance on PEEKs and POKEs that an emulator is the likeliest method to get the program to run on a different system.
 
Back
Top