Hello
I am trying to compile this program using mingw complier but I dont think it has the bios.h library file. Can anybody recommend a freeware complier with the bios.h library (if any)
thanks in advance
Code:#include <stdio.h> #include <bios.h> int main() { unsigned com1_status; unsigned com1_send; unsigned com1_rec; unsigned com1_init; /* setup for Com1, 8bits of data, no parity, one stop bit, 300 baud */ com1_init = _bios_serialcom(_COM_INIT, 0,_COM_CHR8 | _COM_NOPARITY | _COM_STOP1 | _COM_300); printf("Init status: 0x%4.4X\n", com1_init); com1_send = _bios_serialcom(_COM_SEND, 0, '*'); printf("Send status: 0x%4.4X\n", com1_send); return 0; }



LinkBack URL
About LinkBacks



