Redirecting output to a disk file [message #129259] |
Fri, 07 October 2005 15:26 |
|
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 |
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 #129264 is a reply to message #129261] |
Fri, 07 October 2005 17:22 |
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!
|
|
|