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

Home » Digital Archaeology » Computer Arcana » Commodore » Commodore 8-bit » Teletype and C64
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
Teletype and C64 [message #369647] Wed, 27 June 2018 04:33 Go to next message
Anonymous
Karma:
Originally posted by: o.funkenspotz

Hi folks,
I have a little question: I know that you can connect a teletype to the RS232 on the userport. You also can set the port to 50 baud, 5 bit with 1 Startbit and 2 Stopbits.

Is it possible to redirect all text that ist normally shown on the monitor to the teletype and use it as a printer? I woould like to run some text adventures over the C64 on the teletype for Maker Faire.

Since the C64 still has the capability to operate with TTY that should be possible.

Thanks for your advise.
Re: Teletype and C64 [message #369676 is a reply to message #369647] Wed, 27 June 2018 17:22 Go to previous messageGo to next message
Andreas Kohlbach is currently offline  Andreas Kohlbach
Messages: 1456
Registered: December 2011
Karma: 0
Senior Member
On Wed, 27 Jun 2018 01:33:24 -0700 (PDT), o.funkenspotz@gmail.com wrote:
>
> I have a little question: I know that you can connect a teletype to
> the RS232 on the userport. You also can set the port to 50 baud, 5 bit
> with 1 Startbit and 2 Stopbits.
>
> Is it possible to redirect all text that ist normally shown on the
> monitor to the teletype and use it as a printer? I woould like to run
> some text adventures over the C64 on the teletype for Maker Faire.
>
> Since the C64 still has the capability to operate with TTY that should be possible.
>
> Thanks for your advise.

I don't know. But back at the day I used a "open 4,..." command to
redirect what ever you typed on the keyboard ended up on a printer. I
would therefore assume a similar command would be able to redirect a data
stream to a teletype machine.
--
Andreas

My random toughts and comments
https://news-commentaries.blogspot.com/
Re: Teletype and C64 [message #369699 is a reply to message #369647] Thu, 28 June 2018 08:15 Go to previous messageGo to next message
Robert Roland is currently offline  Robert Roland
Messages: 85
Registered: July 2012
Karma: 0
Member
On Wed, 27 Jun 2018 01:33:24 -0700 (PDT), o.funkenspotz@gmail.com
wrote:

> Is it possible to redirect all text that ist normally shown on the monitor to the teletype and use it as a printer? I woould like to run some text adventures over the C64 on the teletype for Maker Faire.

When listing disk directories to paper, I used this:

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

I do not know if it would work with your adventure game, though. There
are many different ways to send text to the screen, and the CMD
command may not support them all.
--
RoRo
Re: Teletype and C64 [message #369712 is a reply to message #369699] Thu, 28 June 2018 14:46 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: Henning Bekel

On Thu, 28 Jun 2018 14:15:42 +0200
Robert Roland <fake@ddress.no> wrote:

> On Wed, 27 Jun 2018 01:33:24 -0700 (PDT), o.funkenspotz@gmail.com
> wrote:
>
>> Is it possible to redirect all text that ist normally shown on the monitor to the teletype and use it as a printer? I woould like to run some text adventures over the C64 on the teletype for Maker Faire.
>
> When listing disk directories to paper, I used this:
>
> http://www.lemon64.com/forum/viewtopic.php?t=24138
>
> I do not know if it would work with your adventure game, though. There
> are many different ways to send text to the screen, and the CMD
> command may not support them all.
> --
> RoRo

The RS232 Device number is 2. You should be able to redirect BASIC prints (and everything else that prints via the Kernal CHROUT routine) to the device. If the program does not use the kernal CHROUT routine but instead pokes directly to screen memory, you're out of luck. CMD only sets the default output device used by CHROUT.

See https://www.c64-wiki.com/wiki/RS-232 for details on configuring and opening the device. After opening, you need to issue CMD 2 to change the default device for all print statements.

I'm not sure whether RUNning a BASIC program will reset the default output device for CHROUT. If so, you will need to modify the program accordingly.
Re: Teletype and C64 [message #369742 is a reply to message #369647] Fri, 29 June 2018 10:10 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: rridge

<o.funkenspotz@gmail.com> wrote:
> I have a little question: I know that you can connect a teletype to the
> RS232 on the userport. You also can set the port to 50 baud, 5 bit with
> 1 Startbit and 2 Stopbits.

Note that you'll need hardware to convert the userport's TTL levels into
either RS232 levels or current loop signalling, depending on what the
teletype requires.

> Is it possible to redirect all text that ist normally shown on the
> monitor to the teletype and use it as a printer? I woould like to run
> some text adventures over the C64 on the teletype for Maker Faire.
>
> Since the C64 still has the capability to operate with TTY that should
> be possible.

If need to do this on a Commodore 64 then you'll nned to hack up the game
in some way to use the serial port. As mentioned in other posts you might
be able to use BASIC's CMD to redirect the game's output to the serial
port, but there's no command for redirecting input. As I recall the
early Infocom games for the C64 used the standard kernal I/O routines,
and it's not too hard to hack the later Infocom games to also use them,
so it wouldn't be that difficult of a hack. Still you'll need to know
6502 assembly.

If you're just trying to a get a text adventure to work a on teletype
then your best bet would be use one of the Infocom Z-machine emulators
(eg. Frotz) on some sort of Linux, Windows or even MS-DOS computer with
a standard RS232 serial port. You may still need some sort of hardware
to convert standard RS232 levels to the current loop signalling many
teletypes used.

--
l/ // Ross Ridge -- The Great HTMU
[oo][oo] rridge@csclub.uwaterloo.ca
-()-/()/ http://www.csclub.uwaterloo.ca/~rridge/
db //
Re: Teletype and C64 [message #370218 is a reply to message #369647] Thu, 05 July 2018 13:35 Go to previous message
Anonymous
Karma:
Originally posted by: nospam.Anachronist

This sounds really cool, let us know if you get it working!
n1ceac6NACHRONceic6ST c9| c2acaBSc2icaNTHE c2BcaBSq1
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: C64/128 Source on Github
Next Topic: Official FAQ comp.binaries.cbm (semimonthly posting)
Goto Forum:
  

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

Current Time: Tue Apr 23 10:39:40 EDT 2024

Total time taken to generate the page: 0.14753 seconds