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." 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: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 > >