Looking for work? Check out our jobs area.
*/
*/

View debug\debuglpt.txt

Printer Port Interfacing 1 V1.0

Submitted By: myscripting
Rating: starstarstarstar (Rate It)


Flash an led with debug

Is it possible to do this in debug in dos , of course it is . Here is the process for Windows 98 .

1. Open up a dos console . Start / Programs / MS-DOS prompt on my machine.
2. Type in debug on the line displayed on the screen.
3. A - will appear on the next line . After this type in o 378,0 . The led will go out (turn off).
4. Now type in o 378,1 . The led will now go on .


The parameters are as follows
378 is the address you wish to output to , in this case this is the address of LPT1 on my PC . The second parameter is the value to be outputted , this value is in hexadecimal . So for example to switch all of the leds on you would enter o 378,ff .

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings