home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / windows / msoftfix.zip / WINBAUD.FIX < prev   
Text File  |  1990-07-20  |  2KB  |  41 lines

  1. This is another Microsoft Windows patch.  The need arose to allow
  2. Windows to access it's printers serially though a print buffer.  This 
  3. was the only piece of software that did not co-operate with a MODE
  4. redirect of LPT1:=COM1:.  Microsoft again bypasses MS-DOS and does their
  5. own periphial driving, however each print also reinitalizes the baud 
  6. rate to something you don't want.
  7.  
  8. This file describes how to patch WIN200.OVL to allow almost any baud rate.
  9. What they don't tell you is that any baud rate from 2 to 19200 is valid.
  10. Windows takes the value you enter and divides it into 115200 to come up
  11. with a divide rate for the ACIA.  This patch removes the 19200 upper limit
  12. and allows up to 65535 to be specified as a baud rate.  By entering a baud
  13. rate of 1 you will end up running 115200 baud.  With this you should be
  14. able to hit any of the "standard" fast baud rates.
  15.  
  16. For Windows 3.0 you will need to patch COMM.DRV located in the \SYSTEM
  17. subdirectory off the main windows subdirectory.  The patch is at offset
  18. 15B0h.
  19.  
  20. What you need to do is change 21 bytes.  Search for the following:
  21.  
  22. 33 C0 83 F9 02 72 0E 81 F9 01 4B
  23.  
  24. Starting where the 33 is, replace it with:
  25.  
  26. B8 01 00    MOV AX,0001    ;Divisor for 115200 baud
  27. 83 F9 02    CMP CX,0002    ;Is desired rate < 2
  28. 72 0D        JB  056C    ;Yes then use ACIA divisor of 1 (AX)
  29. BA 01 00    MOV DX,0001    ;DX:AX = 115200
  30. B8 00 C2    MOV AX,C200
  31. F7 F1        DIV CX        ;AX=DX:AX/CX  otherwise calculate ACIA divisor
  32. 90        NOP        ;Extra room !
  33. 90        NOP
  34. 90        NOP
  35. 90        NOP
  36. 90        NOP
  37.  
  38. There ya go!
  39.  
  40. 73, Dave
  41.