Re: Assembler in C

Search this archive.

From: Kevin D. Quitt (KQuitt@ieeinc.com)
Date: Thu 07 Jun 2001 - 04:28:22 IDT


I'm compiling as follows:

gcc -O2 ck.c -DSHOW=1 libvgagl.a libvga.a ckn.o -o cks

It appears that no I/O writes or reads are taking place.  The output from:

    outb( 0x14, 0x3D6 );                // Select XR14

    stat    = inb( 0x3D7 ) & 0x8F;      // Enable VSYNC, Retrace, and HSYNC
    outb( stat | 0x50, 0x3D7 );
    fprintf( report, "stat is %0X\n", stat );

is always 0.  Are the compiler switches I need?


--
 _
Kevin D. Quitt					             KQuitt@ieeinc.com
		      96.37% of all statistics are made up



------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:24 IST