#include <sys/io.h>
#include <stdio.h>
#include <assert.h>

#define MCR 0x3fc
#define ACTIVATE_RTS 0x2
#define ACTIVATE_DTR 0x1
#define DEACTIVATE_RTS 0x0

int main ( void )
{
    int b;
    iopl(3);

    // aktywuje RTS w modem control register
    outb(ACTIVATE_RTS, MCR);

    // aktywuje DTR w modem control register
    outb(ACTIVATE_DTR, MCR);
    
    //deaktywuje RTS w modem control register
    outb(DEACTIVATE_RTS, MCR);

    return 0;
}
