Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Commodore » Commodore 8-bit » Redirecting output to a disk file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Redirecting output to a disk file [message #129259] Fri, 07 October 2005 15:26 Go to next message
Anonymous
Karma:
Originally posted by: mark

I am trying to remember how to get an ASCII copy of a BASIC program
before I go and try to dig data off an old Commodore 64. Of course,
maybe I could grab the program, and load it into an emulator at a
later date and grab the text somehow that way, but I'd also like to
have a go at generating it on the Commodore 64 itself.

With a combination of distant memory and online pages, I'm guessing
I can do something like,

LOAD "BASIC PROGRAM", 8
OPEN 1,8,1,"ASCII TEXT"
CMD 1
LIST
PRINT#1
CLOSE 1

Does that look like it should do it?

-- Mark
Re: Redirecting output to a disk file [message #129260 is a reply to message #129259] Fri, 07 October 2005 16:37 Go to previous messageGo to next message
Jim Brain is currently offline  Jim Brain
Messages: 962
Registered: August 2012
Karma: 0
Senior Member
> I can do something like,
> LOAD "BASIC PROGRAM", 8
> OPEN 1,8,1,"ASCII TEXT"
> CMD 1
> LIST
> PRINT#1
> CLOSE 1
> Does that look like it should do it?
> -- Mark

I can't remember if #1 is reserved, I always use #2.

open1,8,2,"ascii text,s,w"
etc.

Jim
Re: Redirecting output to a disk file [message #129261 is a reply to message #129259] Fri, 07 October 2005 16:38 Go to previous messageGo to next message
Leif Bloomquist is currently offline  Leif Bloomquist
Messages: 1065
Registered: January 2012
Karma: 0
Senior Member
"Mark Carroll" <mark@ixod.org> wrote in message
news:di6hi2$8tp$1@niagara.mtbc.internal...

> I am trying to remember how to get an ASCII copy of a BASIC program
> before I go and try to dig data off an old Commodore 64. Of course,
> maybe I could grab the program, and load it into an emulator at a
> later date and grab the text somehow that way, but I'd also like to
> have a go at generating it on the Commodore 64 itself.

There's TextPort,
http://user.tninet.se/~pug510w/datormuseum/vic20software.htm l#port

Though if you can get the .prg onto a PC, there's an online BASIC->ASCII
converter:
http://www.davidviner.com/cbmlister.php
Re: Redirecting output to a disk file [message #129264 is a reply to message #129261] Fri, 07 October 2005 17:22 Go to previous message
Sam Gillett is currently offline  Sam Gillett
Messages: 2422
Registered: June 2003
Karma: 0
Senior Member
"Leif Bloomquist" wrote ...

> "Mark Carroll" <mark@ixod.org> wrote in message
> news:di6hi2$8tp$1@niagara.mtbc.internal...
>
>> I am trying to remember how to get an ASCII copy of a BASIC program
>> before I go and try to dig data off an old Commodore 64. Of course,
>> maybe I could grab the program, and load it into an emulator at a
>> later date and grab the text somehow that way, but I'd also like to
>> have a go at generating it on the Commodore 64 itself.
>
> There's TextPort,
> http://user.tninet.se/~pug510w/datormuseum/vic20software.htm l#port
>
> Though if you can get the .prg onto a PC, there's an online BASIC->ASCII
> converter:
> http://www.davidviner.com/cbmlister.php

There is also an old DOS program you can run on the PC called listcbm.exe
(works fine in a DOS window under Win95 and XP... [I skipped everything in
between so can't vouch for compatibility with other Windows]).

If you, or the original poster, can't find it anywhere, tell me you want it
and I will email a copy.
--
Best regards,

Sam Gillett

Change is inevitable,
except from vending machines!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: New Website
Next Topic: OT: Problem with SR4190R
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Mon May 13 00:53:25 EDT 2024

Total time taken to generate the page: 0.06312 seconds