Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Printing programs/text output from WinVice?

1,038 views
Skip to first unread message

Harry Potter

unread,
Dec 19, 2013, 2:00:43 PM12/19/13
to
I have access to a Win98 PC (my WinVista computer is broken)--but not always--and use WinVice to do some of my CBM programming and want to know if it's possible to divert text output or a program listing to a text file for later printing at a library so I can work on it off the computer. I've been doing this with cc65 code for awhile and think it helps. I don't want a graphic output but am willing to do it if necessary. I prefer a plain text file--and a program to convert PETSCII to ASCII, but I think I can do it in Word97.

Harry Potter

unread,
Dec 19, 2013, 2:34:52 PM12/19/13
to
On Thursday, December 19, 2013 2:00:43 PM UTC-5, Harry Potter wrote:
> I have access to a Win98 PC (my WinVista computer is broken)--but not always--and use WinVice to do some of my CBM programming and want to know if it's possible to divert text output or a program listing to a text file for later printing at a library so I can work on it off the computer. I've been doing this with cc65 code for awhile and think it helps. I don't want a graphic output but am willing to do it if necessary. I prefer a plain text file--and a program to convert PETSCII to ASCII, but I think I can do it in Word97.

If nothing else, I could simply capture the screen at every screen-full of code. This would help, but I'm wondering about actually printing it as a text file. In fact, I'm wondering how to handle actual *printing* via an emulated printer.

Frank Buss

unread,
Dec 19, 2013, 4:00:31 PM12/19/13
to
Harry Potter wrote:
> I have access to a Win98 PC (my WinVista computer is broken)--but not
> always--and use WinVice to do some of my CBM programming and want to
> know if it's possible to divert text output or a program listing to a
> text file

With VICE 2.4 on Windows: Settings->Peripheral Settings->Printer 4:
- check "Use IEC Device"
- Printer emulation: "file system"
- Printer driver: ASCII
- Output file #1 name: c:\tmp\viceprint.txt

On the C64 in VICE:

10 PRINT"HELLO"
20 RUN

OPEN1,4
CMD1
LIST

The file c:\tmp\viceprint.txt will be written after VICE is closed.
There are two linefeeds for each line. With Ultraedit this can be fixed
by replacing "^r^n^r^n" with "^r^n".

--
Frank Buss, http://www.frank-buss.de
electronics and more: http://www.youtube.com/user/frankbuss

Harry Potter

unread,
Dec 20, 2013, 8:51:51 AM12/20/13
to
On Thursday, December 19, 2013 4:00:31 PM UTC-5, Frank Buss wrote:
> With VICE 2.4 on Windows: Settings->Peripheral Settings->Printer 4:
> - check "Use IEC Device"
> - Printer emulation: "file system"
> - Printer driver: ASCII
> - Output file #1 name: c:\tmp\viceprint.txt
>
Will this work on WinVice 2.2, also?

Frank Buss

unread,
Dec 20, 2013, 8:54:23 AM12/20/13
to
I don't know, but I think the easiest way to find it out is to test it :-)

Harry Potter

unread,
Dec 20, 2013, 9:17:32 AM12/20/13
to
On Friday, December 20, 2013 8:54:23 AM UTC-5, Frank Buss wrote:
> I don't know, but I think the easiest way to find it out is to test it :-)

I can do that! :)

Payton Byrd

unread,
Dec 20, 2013, 9:32:44 AM12/20/13
to
On Thursday, December 19, 2013 1:00:43 PM UTC-6, Harry Potter wrote:
> I have access to a Win98 PC (my WinVista computer is broken)--but not always--and use WinVice to do some of my CBM programming and want to know if it's possible to divert text output or a program listing to a text file for later printing at a library so I can work on it off the computer. I've been doing this with cc65 code for awhile and think it helps. I don't want a graphic output but am willing to do it if necessary. I prefer a plain text file--and a program to convert PETSCII to ASCII, but I think I can do it in Word97.

Joseph,

I've been wondering about why your PC access is so fragmented. Are you incarcerated somewhere? Do you have limited hours that you can visit the computer lab or library? Inquiring minds want to know.

Harry Potter

unread,
Dec 20, 2013, 10:30:25 AM12/20/13
to
On Friday, December 20, 2013 9:32:44 AM UTC-5, Payton Byrd wrote:
> Joseph,
>
> I've been wondering about why your PC access is so fragmented. Are you incarcerated somewhere? Do you have limited hours that you can visit the computer lab or library? Inquiring minds want to know.

I'm sorry. :( I simply don't have access to a computer all the time. I have a computer at home but am not allowed to use it. I don't know why. I go to a day program and used to do the bulk of my work there. Unfortunately, I let a virus infect one of the computers, and it infected the whole program. :( So, now, I can't use floppies or *any* removable media there, anymore. :( I still have my mother's Win98 computer--her WinVista computer broke--but I can only see her on some weekends. The last two computers I mentioned are essentially my own as she doesn't use them. At least I can access the internet at my program and its local library and download at the library.

I have good news, though: I might be getting a laptop soon. :)

Frank Buss

unread,
Dec 20, 2013, 1:30:53 PM12/20/13
to
Harry Potter wrote:
>
> So, now, I can't use floppies or *any* removable media there, anymore.

Instead of removable medias, you could use http://www.dropbox.com or
similar services.

It's impressive what you do with computers and your work for cc65.
Usually kids these days are just playing games or watching Youtube
videos instead of learning how to program. And with the C64 and C128 you
are learning everything down to the metal, which will really help you
later to get a good job.

BTW: do you know lemon64.com ? More active than this dying newsgroup.
There was even an interesting discussion with the author of Simons'
BASIC about how he managed to sell things to Commodore and what he does now:

http://www.lemon64.com/forum/viewtopic.php?t=31356

> I have good news, though: I might be getting a laptop soon. :)

Merry Christmas :-)

Harry Potter

unread,
Dec 23, 2013, 11:07:09 AM12/23/13
to
On Friday, December 20, 2013 1:30:53 PM UTC-5, Frank Buss wrote:
> Harry Potter wrote:
> > So, now, I can't use floppies or *any* removable media there, anymore.
>
> Instead of removable medias, you could use http://www.dropbox.com or
> similar services.
>
The computers in question here are *not* mine. They belong to my day program, and I screwed up their computers badly. :'( I used to bring my software there so I can work on it there. If I can't bring my work there, I certainly can't use dropbox.com to store my work. I can't even download, ever. The site would require successive uploads/downloads, making it mostly useless for my purposes.

> It's impressive what you do with computers and your work for cc65.
> Usually kids these days are just playing games or watching Youtube
> videos instead of learning how to program. And with the C64 and C128 you
> are learning everything down to the metal, which will really help you
> later to get a good job.
>
Thank you! :) Although I'm a 33-year-old child. :(

> BTW: do you know lemon64.com ? More active than this dying newsgroup.
> There was even an interesting discussion with the author of Simons'
> BASIC about how he managed to sell things to Commodore and what he does now:
>
> http://www.lemon64.com/forum/viewtopic.php?t=31356
>
I am familiar with lemon64.com, but I mainly use that site for games.

> > I have good news, though: I might be getting a laptop soon. :)
> Merry Christmas :-)
>
Thank you.

Frank Buss

unread,
Dec 23, 2013, 2:22:22 PM12/23/13
to
Harry Potter wrote:

> Thank you! :) Although I'm a 33-year-old child. :(

Sorry, I think I misunderstood "day program", I assumed this:

http://en.wikipedia.org/wiki/Extended_day_program

But with 33 you should really have your own computer, makes everything
much easier.

Harry Potter

unread,
Dec 27, 2013, 8:54:13 AM12/27/13
to
On Thursday, December 19, 2013 4:00:31 PM UTC-5, Frank Buss wrote:
> On the C64 in VICE:
>
> 10 PRINT"HELLO"
> 20 RUN
>
> OPEN1,4
> CMD1
> LIST
>
Okay, I understand these commands, but how do I close the channel? What do I have to type before CLOSE 1 to exit the CMD1 redirection?

Frank Buss

unread,
Dec 27, 2013, 10:13:03 AM12/27/13
to
You can undo the "CMD1" with a "PRINT#1". But I don't know when VICE
writes the file, but it does write the file when you close VICE.

Harry Potter

unread,
Dec 27, 2013, 10:16:14 AM12/27/13
to
On Friday, December 27, 2013 10:13:03 AM UTC-5, Frank Buss wrote:
> You can undo the "CMD1" with a "PRINT#1". But I don't know when VICE
> writes the file, but it does write the file when you close VICE.
>
Thank you. :)
0 new messages