klarich@a.cs.okstate.edu (Terry Klarich) (05/11/89)
I was reading the documentation for the latest version of mskermit. It said that com3 and com4 are available for use under this version. All one needs to do is to write a program that stores the base addresses of these ports in two memory locations. Well, after writing a program that did this, I not only have these ports available for mskermit; but, I can now access them with the mode command as well as the ">" operator. c> mode com[3/4]: 9600,n,8,1,p or c> dir > com[3/4]: Here is the program written in Modula2. I will also send out the binary if requested. But, you should not have any trouble translating it into your favorite language. Hope this helps someone. Oh ya, I am using dos ver 3.3. MODULE SetPort; (* This program is used to tell kermit where to find com3 and com4. *) VAR (*declare com3 and com as certain memory locations*) (*the [address] value tells the compiler where to create these variables so dos can find the base addresses of com3 and com4*) com3[040H:4H] : CARDINAL; com4[040H:6H] : CARDINAL; BEGIN com3 := 03E8H; com4 := 02E8H; END SetPort. -- Terry Klarich (klarich@a.cs.okstate.edu) n5hts A man is not complete until he is married then, he is finished.