Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: Notesfiles $Revision: 1.6.2.17 $; site uiucdcsb.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcsb!chen
From: chen@uiucdcsb.UUCP
Newsgroups: net.micro.cbm
Subject: c64 as a slave computer
Message-ID: <16800018@uiucdcsb.UUCP>
Date: Fri, 21-Dec-84 22:58:00 EST
Article-I.D.: uiucdcsb.16800018
Posted: Fri Dec 21 22:58:00 1984
Date-Received: Thu, 27-Dec-84 03:49:21 EST
Lines: 24
Nf-ID: #N:uiucdcsb:16800018:000:946
Nf-From: uiucdcsb!chen    Dec 21 21:58:00 1984


  I have been trying to make my c64 talk/listen to the user port (device #2)
while running the BASIC interpreter. The idea is to use c64 as a slave
computer under the total control of a master computer, while taking
advantage of all the convenient features provided by the BASIC.
I was only marginally successful doing it the following way:

1) Open device #2. No problem here.
2) Poke 154,2. This sets the default output device to the user port.
   This actually worked, except that it switched the default output
   device back to the screen whenever 
   a) numbered basic statements are entered
   b) there are error of any type
   also the echoed characters did not go to the user port.
3) Poke 153,2. Supposedly this should set the default input device
   to the user port, but the command always irreversably send the c64
   into some unknown state.

I will appreciate any pointer to the solution of this problem.


Kaihu Chen
uiucdcs!chen