delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2014/07/10/18:09:24

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <53BF0BF3.6010009@codespunk.com>
Date: Thu, 10 Jul 2014 17:56:03 -0400
From: "Matt D." <matt AT codespunk DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Using outportb() with djgpp
References: <almarsoft DOT 2508132549819646607 AT news DOT free DOT fr>
In-Reply-To: <almarsoft.2508132549819646607@news.free.fr>
Reply-To: djgpp AT delorie DOT com

Mateusz,

I have a few genuine MPU401 (SCC-1 and MM-401) along with some sound 
blasters if you want me to run some tests on additional hardware.

Your system specs, OS, test app, and source code would be helpful in 
this case.

Also include the exact Turbo C and DJGPP compiler you're using so I can 
replicate your results.

Matt D.

On 7/10/2014 4:20 PM, Mateusz Viste wrote:
> 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