From: "Steve Patton" Newsgroups: comp.os.msdos.djgpp Subject: Re: writing to Adlib ports 0x388 & 0x389 Date: 10 Dec 1997 19:54:33 GMT Organization: AT&T WorldNet Services Lines: 24 Message-ID: <66ms1p$fcc@bgtnsc03.worldnet.att.net> References: <348EBEAA DOT 5C7C AT pp DOT hw DOT ac DOT uk> NNTP-Posting-Host: 12.67.32.106 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Make sure that you're using the correct values. Outportb will send one BYTE (or character) to the address given, whereas I believe OutportW will send the first BYTE of an Integer to the address, and the second byte of the integer to address+1. What would help is for you to post the questionable code in QB and in C and then I can see what you're trying to do. -Steve Simon Ironside wrote in article <348EBEAA DOT 5C7C AT pp DOT hw DOT ac DOT uk>... > Hi everyone, > > I've got a problem, after defecting from QB45 to DJGPP (don't react) > I've been re-writing one of my soundcard programs in C++ I can't get > outportb to work properly, it seems to be a little unreliable.. as the > beeps I get out of the FM synth (using the same algorithm that worked > in QB) aren't the same each time.. My detection code also.. isn't > totally reliable. > > Any suggestions? > Thanks in advance, > Simon. >