Mail Archives: djgpp/1999/03/01/11:52:12

Message-ID: <>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: BUG - the 2nd edition :)
Date: Mon, 1 Mar 1999 16:51:33 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

Carlos Giani_AEN2003 (M2003) writes:
> I can prove it. For a long time, I didn't know why my SB code doesn't 
> work with single-cycle DMA. Then I tried to rewrite the line
>   dmaMode=(autoinit) ? 0x58 : 0x48;
>     to
>   dmaMode=(autoinit!=FALSE) ? 0x58 : 0x48;
> And suddenly single-cycle DMA worked! You see?

Hang on, I'm confused now: does this problem happen only with this
code in your SB routines? What about that example program that you
posted earlier? Is it also going wrong, and if so, exactly what options
do you use to compile it?

If this dma stuff is failing, my immediate guess is that there is
something weird about your autoinit value. What is this defined
as? For instance could it be a macro with side effects?

I'm sorry to seem so suspicious of your claims, but I've been using
gcc for many years and I have never known it to do something wrong
when compiling such basic C syntax. It is probably the most reliable
piece of software that I have ever used, so unless you can come up
with some really reliable (ie. that I can duplicate) proof, I'm
inclined to trust gcc :-)

	Shawn Hargreaves.

- Raw text -

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