/*
 *
 * http://www.geocities.com/SiliconValley/Lakes/7156/
 *
 */

#include 

#define TRUE  1
#define FALSE 0
#define ENC1  0x80
#define ENC2  0x20


int status(unsigned char encoder)
{
        if((inportb(0x379) & encoder) > 0 )
                return(TRUE);
        else
                return(FALSE);
}

void DCout(unsigned char movement)
{
        outportb(37A,3);        /* set load high        */
        outportb(378,movement); /* output motor command */
        outportb(37A,2);        /* strobe */
        outportb(37A,3);        /* strobe */
}
/*
 * end of file
 */

