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

Home » Archive » net.micro.cbm » modem - assembly
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
modem - assembly [message #85975] Mon, 17 June 2013 17:35 Go to next message
Anonymous
Karma:
Originally posted by: rfox@sdcsvax.UUCP (Richard Fox)
Message-ID: <570@sdcsvax.UUCP>
Date: Mon, 7-Jan-85 13:52:22 EST
Article-I.D.: sdcsvax.570
Posted: Mon Jan  7 13:52:22 1985
Date-Received: Fri, 11-Jan-85 08:09:08 EST
Organization: EECS Dept. U.C. San Diego
Lines: 25

I have a question dealing with open files in assembly language and the rs232.

I would like to re-write my basic term program into assembly language.

To do this I need to have 2 opened output devices and 2 opened input devices.
The routines will be structured like this:

rs232 - input - open
screen -output - open

---------------------
keyboard - input - open
rs232    -output - open


To keep switching my input and output files do I have to close the rs232
and then reopen it or can I just keep switching which channel is now the
input/output channel without closing the other one?


All suggestions welcomed

thanks
rich
Re: modem - assembly [message #85979 is a reply to message #85975] Mon, 17 June 2013 17:35 Go to previous message
Anonymous
Karma:
Originally posted by: dwl10@amdahl.UUCP (Dave Lowrey)
Message-ID: <898@amdahl.UUCP>
Date: Wed, 9-Jan-85 09:41:49 EST
Article-I.D.: amdahl.898
Posted: Wed Jan  9 09:41:49 1985
Date-Received: Sat, 12-Jan-85 00:45:31 EST
References: <570@sdcsvax.UUCP>
Organization: Amdahl Corporation, Columbia MD
Lines: 27

> 
> rs232 - input - open
> screen -output - open
> 
> ---------------------
> keyboard - input - open
> rs232    -output - open
> 
> 
> To keep switching my input and output files do I have to close the rs232
> and then reopen it or can I just keep switching which channel is now the
> input/output channel without closing the other one?

There is no need to CLOSE and OPEN the files to switch back and forth. Use
CHKIN to switch input files, and CHKOUT to switch output files. Just load
the X register with the file number (not device number) of the desired
input/output file then call the routine.
-- 
-----------------------------------------------------------------------
                               Dave Lowrey

"GORT...Klatu borada niktow"

                                   ...!{nsc,sun,hplabs,ihnp4}!amdahl!dwl10

[ The opinions expressed  be those of the author and not necessarily
  those of his most eminent employer. ]
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 1541 Alignment query
Next Topic: sparkle
Goto Forum:
  

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

Current Time: Thu Mar 28 19:35:41 EDT 2024

Total time taken to generate the page: 0.14190 seconds