Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven!adm!news From: sousag@v3.hanscom.af.mil (SSGT GERALD C. SOUS) Newsgroups: comp.lang.pascal Subject: RE: port array Message-ID: <26374@adm.brl.mil> Date: 27 Mar 91 16:55:25 GMT Sender: news@adm.brl.mil Lines: 48 E L E C T R O N I C M A I L (DDN Host Address: V3.HANSCOM.AF.MIL) Date: 27-Mar-1991 11:22 From: SSgt. Gerald C. Sousa Jr. Username: SOUSAG Dept: RADC/EECP Tel No: 377-2998 AV478-2998 TO: _WINS% ( _DDN[INFO-PASCAL@BRL.MIL] ) Subject: RE: port array > Subject: port array. > Message-ID: <1991Mar27.024531.1937@cs.umu.se> > Date: 27 Mar 91 02:45:31 GMT > Sender: News Administrator > To: info-pascal@BRL.MIL > Hello again! > I'm writing a DOS-util that should work like ESC-key in UNIX. Don't know if > it excist everywhere, but it helps you with the filenames.... > In my search of how to write this like an TSR i ran into an predefined array > called PORT (and another one called PORTW). Does anyone know what kind of > information that is stored here. (And what is stored where). The TP 5.5 manual gives a somewhat clear description on page 208-209. In case you are missing the manual here is a brief summary: For access to the 80x86 CPU data ports, TP implements two arrays, PORT and PORTW. These are both one dimensional arrays whos elements correspond to a data port. The index type is the integer-type word. The PORT array is type byte and componenets of PORTW are type word. Data is output to the specified port by assigning that data to a componenet of PORT or PORTW. Data is input from the selected port by referencing a given elememt in PORT or PORTW. There are some restrictions on the use of these two arrays and their component parts so you may want to take a look at pages 208-209 of the TP 5.5 manual. Hope I did't tell you something you already know. Hope it helps. Jed Sousa.