Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Intel corner

Port Input/Output

Accessing the hardware ports

Issue: 4.4 (March/April 2006)
Author: Christian Schmitz, cSchmitz-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 5,740
Starting Page Number: 42
RBD Number: 4418
Resource File(s): None
Related Web Link(s):

http://www.logix4u.net

Known Limitations: None

Excerpt of article text...

A friend is currently doing REALbasic applications to replace older Turbo Pascal applications. One of the missing things in REALbasic is direct hardware control. In a multitasking operating system, a single application cannot control the hardware itself. All hardware components are taken by the operating system and can only be used through high level functions in case permissions are granted.

Still, sometimes your application may need to read one of the hardware ports. This type of port is something like an array. 65536 ports exist and the first has the number 0. You can read and write to a port and the CPU will send the signal around on the motherboard of your PC. One of the components may answer and if so you'll get the value. If no one answers, you may get rubbish.

You can also write to a port to send data to a device. For example, the serial keyboard connector on your PC has a controller chip which answers on port ?h060. There you can read the key code of the last key pressed.

The inpout32 library

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com