On 12/14/05, Sean 'Captain Napalm' Conner <spc at conman.org> wrote:
Did you need to read the ports in the sequence
H_ADDR2, H_ADDR1 and
H_ADDR0, or could they be read in any sequence? Because in C, parameters
are evaluated right to left ...
No, The order is not important. But I have a clue now. It might be
that Watcom C treats printf() function differently from other
functions. I think the compiler tends to delay the execution of
printf(), given that variables to be printed have not yet updated by
the program. But this trick (to execute printf() with other printf()'s
for speed?) does not work well if the program needs to read hardware
inside of printf(). I actually observed the "delayed printf()"
phenomenon and its effect here is my guess.
vax, 9000
-spc (rarely is it an issue though ... )