Mail Archives: djgpp/1999/03/01/11:52:12
Carlos Giani_AEN2003 (M2003) writes:
> The bug EXISTS! BELIEVE ME!
>
> 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 -