delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <00bb01c11429$97024e90$0a090dc0@localhost> |
From: | "Clive Mayo" <cm AT ttl-3d DOT co DOT uk> |
To: | <cygwin AT cygwin DOT com> |
Subject: | Read/write IO ports on NT |
Date: | Tue, 24 Jul 2001 11:15:40 +0100 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.00.2919.6600 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
X-Server: | VPOP3 V1.3.0b - Registered to: Tool Room Technology |
Hi Trying to read and write directly at IO port on NT, using the following code int main() { __asm("mov $1, %al"); __asm("mov $0x3f8, %dx"); __asm("out %al, %dx"); return 0; } also tried int main() { _outp(0x378, 1); return 0; } but get the following exception, Privileged instruction. Any suggestions or pointers of how to code this. Clive Mayo -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |