On Jan 29, 11:24 pm, g...@[EMAIL PROTECTED]
wrote:
> Hi,
>
> For some odd nostalgic reason I have started to play around with
> Microsoft basic 2.0 on my old (512k) Mac. I'm particularly interested
> in any capabilities it has to drive the serial ****ts for good old
> serial communications, however I dont have any reference materials
> that describe how to go about it.
>
> I purchased a rather good guide to MS Basic from amazon, but although
> its a good reference on how to write code and covers many aspects of
> the platform, it doesnt cover serial comms.
>
> I see there are several other old MS Basic for Mac books I could buy,
> but I've got no idea if any of them will cover the information I want
> either.
>
> So, I was wondering if anyone could either point me to an online
> resource, or name a book (if anyone can remember that far back :) )
> that contains information on how to do serial comms in MS Basic 2.0
> for Mac.
>
> Cheers,
IIRC, the syntax was similar to:
100 open "COM1:" for output as #1
Then just use input # and print # statements for I/O.
In MS Basic 1.0 for Macintosh there was no way to set the
baud rate without peeking and poking at the 8530 SCC chip
registers. (Somewhere in storage I may have a notebook
with the addresses of those registers...)
Not sure about MSB 2.0... perhaps try something like:
110 OPEN "COM1:2400,N,8,2" FOR OUTPUT AS #1
120 OPEN "COM1:2400,N,8,2" FOR INPUT AS #2
This is also similar to the serial ****t open syntax I used
for Chipmunk Basic:
http://www.nicholson.com/rhn/basic
IMHO. YMMV.
--
rhn A.T nicholson d.0.t C-o-M


|