I
ilcario
I would like access to direct addess port via Giveio.sys device driver
(with windows xp e 2k).
i don't understand why this source for pilot a uart controller tra an
exception in _asm cli instruction.
How can I do run un assembler instruction with pricilege mode ??
//************** source code
void Serial_Write (unsigned char ch) {
while (!((unsigned char)Read_UART(port_in_use, REG_LSR) &
0x20)){}
//clear interrupts
_asm cli
Write_UART(port_in_use, REG_THR, (int)ch);
//set interrupts
_asm sti
}
//********************
thanks a lot
ilcario
(with windows xp e 2k).
i don't understand why this source for pilot a uart controller tra an
exception in _asm cli instruction.
How can I do run un assembler instruction with pricilege mode ??
//************** source code
void Serial_Write (unsigned char ch) {
while (!((unsigned char)Read_UART(port_in_use, REG_LSR) &
0x20)){}
//clear interrupts
_asm cli
Write_UART(port_in_use, REG_THR, (int)ch);
//set interrupts
_asm sti
}
//********************
thanks a lot
ilcario