Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!quiche!einstein From: einstein@cs.mcgill.ca (Michael CHOWET) Newsgroups: comp.lang.pascal Subject: Re: Port and PortW Message-ID: <1991Jun1.185828.22240@cs.mcgill.ca> Date: 1 Jun 91 18:58:28 GMT References: Sender: news@cs.mcgill.ca (Netnews Administrator) Organization: SOCS, McGill University, Montreal, Canada Lines: 28 In article dvllhd@cs.umu.se (Lars H{gglund) writes: >When I read the manual for TP5.5 about Port and PortW >it doesn't tell me anything about what data I can get >from it. It only says that the pre defined arrays gives >me access to the 80x86 CPU data ports. >Anyone who can tell me how I can use the data from each >of the ports or a book were I can read about it. Well, here's what your friendly neighbourhood TP4.0 manual has to say about them... (pg 361) "The Port and PortW Arrays For access to the 80x86 CPU data ports, Turbo Pascal implements two predefined arrays, Port and PortW. Both are one-dimensional arrays, and each element represents a data port, whose port address corresponds to its index. The index is the integer-type word. Components of the Port array are of type byte, and components of the PortW array are of type word. When a value is assigned to a component of Port or PortW, the value is output to the selected port. When a component of Port or PortW is referenced in an expression, its value is input from the selected port. " _______________________________________________________________________________ | McGill University, Montreal, Canada | Why is it that life must | | Computer Science Undergrad Society - VP External |be carried forth with such| |__ Michael Chowet _ I-Net:einstein@cs.mcgill.ca __|pain and stress and mess? |