PgrAm
Experienced Member
I wrote some code to send binary data back and forth via serial between an app on DOS PC and an app Windows PC. Initially I simply used Watcom's fopen to open com1 and fread/fwrite to send/receive data. Unfortunately while this works ok on DosBox, it is both unreliable and horrendously slow on real hardware.
So I think I need to use some lower level method for reading and writing. Should I use bios interrupts? or should I just interface directly with the uart via port 0x3F8 (com1). Anyone have experience with this? What is a good and reliable method here?
I'm using c++/assembly btw
So I think I need to use some lower level method for reading and writing. Should I use bios interrupts? or should I just interface directly with the uart via port 0x3F8 (com1). Anyone have experience with this? What is a good and reliable method here?
I'm using c++/assembly btw