delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2014/07/10/16:45:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Mateusz Viste <mateusz DOT viste AT delorie DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Using outportb() with djgpp
Date: Thu, 10 Jul 2014 22:20:13 +0200
Message-ID: <almarsoft.2508132549819646607@news.free.fr>
User-Agent: Groundhog Newsreader for Android
Lines: 12
Organization: Guest of ProXad - France
NNTP-Posting-Date: 10 Jul 2014 22:20:15 CEST
NNTP-Posting-Host: 82.225.72.113
X-Trace: 1405023615 news-3.free.fr 2140 82.225.72.113:55962
X-Complaints-To: abuse AT proxad DOT net
Bytes: 1220
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I am trying to write to a hardware port from within djgpp, using 
outportb(). It does work from time to time, but often outportb() will 
make the whole PC reboot. Specifically I am writing to port 0x330 (to 
a MPU401 adapter). If using the same code with turbo C, it works 
perfectly. Hence I am wondering: are there any special "rules" I 
should be aware of when trying to outportb() from within protected 
mode?

regards,
Mateusz

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019