[comp.sys.ibm.pc] TurboC, wanderer, and Zenith Supersport

hobbes@portia.Stanford.EDU (Andrew Zimmerman) (11/24/89)

Turbo C:
    Is there a bug in the >> operator in Turbo C?  The following 
section of code doesn't seem to work (Turbo C 2.0)

    long value, shift;

    value = 0x8000;
    for(shift=0; shift < 32; shift++)
    {
	printf("%08X\n",value >> shift);
    }
Seems to work fine if shift is an int.  (I know, I could do a (int) in front
of the shift, I just think that it should work without one.)

Wanderer:
    I am looking for the most current version of wanderer that will run
on a CGA machine.  Also, which version of pccurses should be used with
wanderer.

Supersport:
    Has anyone had any success using the composite video signal that is
supposed to be available on the 9-pin video connector?  I've been able to
use the RGB output, but not the composite.

Any help would be appreciated.

Andrew
zimmer@calvin.stanford.edu
hobbes@portia.stanford.edu

hobbes@portia.Stanford.EDU (Andrew Zimmerman) (11/24/89)

In article <6973@portia.Stanford.EDU>, hobbes@portia.Stanford.EDU (Andrew Zimmerman) writes:
> Turbo C:
>     Is there a bug in the >> operator in Turbo C?  The following 
> section of code doesn't seem to work (Turbo C 2.0)
> 
>     long value, shift;
> 
>     value = 0x8000;
>     for(shift=0; shift < 32; shift++)
>     {
> 	printf("%08X\n",value >> shift);
>     }
> Seems to work fine if shift is an int.  (I know, I could do a (int) in front
> of the shift, I just think that it should work without one.)
> 
    Sorry about the above program.  As one individual pointed out to me, I
have the wrong format in the print statement.  It should have been lX,
in which case it works just fine.  (Thats what you get when you use the
scanf formats in a printf statement (X is for a long in scanf, but is for
an int in printf))
 
Andrew
zimmer@calvin.stanford.edu
hobbes@portia.stanford.edu