home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,258 of 2,978   
   Erwann ABALEA to RadSurfer   
   Re: TP 5.5 and Ports   
   31 Jan 05 21:54:02   
   
   From: erwann@abalea.com   
      
   Bonsoir,   
      
   On Mon, 31 Jan 2005, RadSurfer wrote:   
      
   > In 'C/C++' inport and outport functions exist, but I did not notice   
   > such functions in the TP 5.5 list of functions and procedures, I tried   
   > to search the   
      
   Under Turbo Pascal, you have 2 pseudo-arrays named Port and PortW that are   
   of much easier use.   
   If you want to write the byte B to port P, just do this:   
   Port[P] := B;   
   If you want to read from port P and store the value into variable C, just   
   do:   
   C := Port[P];   
      
   PortW allows you to read/write words (i.e. 16 bits quantities).   
      
   > I would like to know if TP 7.x is currently available, and how I might   
   > be   
      
   Turbo Pascal 6 and later are not available for free legally.   
      
   > able to obtain it.  I understand that TP 7.x is capable of making DOS   
   > 16-bit,   
   > and also Windows-compatible applications.  This sounds too good to pass   
      
   Wrong. Turbo Pascal 7 can't create windows applications, only 16-bit   
   real-mode DOS applications (not even 32-bits or 16-bits DPMI ones).   
      
   --   
   Erwann ABALEA  - RSA PGP Key ID: 0x2D0EABD5   
   -----   
   Against stupidity, the Gods themselves, contend in vain!   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca