home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / ARTFIX09.ZIP / TIMED / DOS-OLD / TIMED.PSC < prev   
Text File  |  1999-08-21  |  6KB  |  147 lines

  1. ;
  2. ; ===========================================================================
  3. ;                Patch script for timEd v1.10 (DOS Version)
  4. ;                      Version 1.00 - 05. May 1998
  5. ;
  6. ;    Created by Tobias Ernst, Fido 2:2476/418, e-mail tobi@bland.fido.de
  7. ; ===========================================================================
  8. ;
  9. ; NOTE: This patch script will rename timed.exe into timed.ovl if the patch
  10. ;       is successful. You will have to execute timed by using timed.com
  11. ;       which should have been supplied to you together with this patch file.
  12. ;
  13. ;       If you wish to understand this patch, you will want to see what
  14. ;       the service routines on interrupts 47..49 and 4B..4C do. Have a
  15. ;       look at timed.asm for this. It is the source for timed.com.
  16. ;
  17. SIZE 377952                ; filesize timed.exe
  18. ;
  19. COPY UNPATCH\TIMED.EXE     ; make a backup copy in <TimedPath>\unpatch
  20. ;
  21. REN TIMED.OVL              ; rename pached timed.exe to timed.ovl in order
  22.                            ; to prevent the patched executable from being
  23.                            ; executed without installed interrupt handlers
  24. ;
  25. ; ---------------------------------------------------------------------------
  26. ; Fix three digit year in FTSC (msg, squish) and Hudson date fields.
  27. ; ("100" instead of "00"). Previously, a three digit number was pushed
  28. ; to the stack from 2000 on.
  29. ;
  30. VER 24233 FF770A           ; push word ptr [bx+0a]
  31. ;
  32. CHA $     CD4D+            ; int 4d          ; call service routine #1
  33.           90               ; nop
  34. ;
  35. VER 27E97 FF770A           ; push word ptr [bx+0a]
  36. ;
  37. CHA $     CD4D+            ; int 4d          ; call service routine #1
  38.           90               ; nop
  39. ;
  40. VER 2DD66 FF770A           ; push word ptr [bx+0a]
  41. ;
  42. CHA $     CD4D+            ; int 4d          ; call service routine #1
  43.           90               ; nop
  44. ;
  45. ;
  46. ; --------------------------------------------------------------------------
  47. ; Fix incorrect dates in replies generated with a template containing
  48. ; the %year token.  Previously, a three digit year number was pushed to
  49. ; the stack, and the sprintf format string had a hard coded "19" in
  50. ; front of it. Now, a four digit year number is pushed to the stack by
  51. ; service routine #2, and the format string is adapted.
  52. ;
  53. VER 4F220 313925322E326900 ; db "19%2.2i",0
  54. ;
  55. CHA $     25342E3469000000 ; db "%4.4i",0
  56. ;
  57. VER CDB0  FF770A           ; push word ptr [bx+0a]
  58. ;
  59. CHA $     CD4E+            ; int 4E          ; call service routine #2
  60.           90               ; nop
  61. ;
  62. ;
  63. ; --------------------------------------------------------------------------
  64. ; Patch the Tearline and other places to announce version "1.10.y2k"
  65. ; intead of "1.10".
  66. ;
  67. VER 53c32 00000000         ; db 0,0,0,0
  68. ;
  69. CHA $     2E79326B         ; db ".y2k"
  70. ;
  71. ;
  72. ; --------------------------------------------------------------------------
  73. ; Fix interpretation of a two digit year number when reading *.MSG and
  74. ; Squish messages. Previously: 19xx, Now: 19xx if xx>=80, 20xx if xx<80
  75. ;
  76. VER 4039  2D5000           ; sub ax,0050
  77. ;
  78. CHA $     CD4F+            ; int 4F          ; call service routine #3
  79.           90               ; nop             ; instead
  80. ;
  81. ;
  82. ; --------------------------------------------------------------------------
  83. ; Fix handling of a UNIX time_t timestamp from  2038 on. Previously,
  84. ; it was treated as a signed long (which led to an overflow on 18/01/2038).
  85. ; Now we treat it as an unsigned long.
  86. ; Note: This did not look like a programming error. It rather looked like
  87. ; an error in the runtime library of Watcom C. BTW, the Borland C library
  88. ; also has this bug.
  89. ;
  90. VER 3969   9AB01F980F      ; call 0F98:1FB0  ; call the watcom routine
  91.                            ;                 ; for 32-bit signed divisions
  92. ;
  93. CHA $      9AB81F980F      ; call 0F98:1FB8  ; call the watcom routine
  94.                                              ; for 32-bit unsigned divisions
  95. ;
  96. VER 397B   9AB01F980F      ; call 0F98:1FB0
  97. ;
  98. CHA $      9AB81F980F      ; call 0F98:1FB8
  99. ;
  100. VER 3989   9AB01F980F      ; call 0F98:1FB0
  101. ;
  102. CHA $      9AB81F980F      ; call 0F98:1FB8
  103. ;
  104. VER 399B   9AB01F980F      ; call 0F98:1FB0
  105. ;
  106. CHA $      9AB81F980F      ; call 0F98:1FB8
  107. ;
  108. VER 39A9   9AB01F980F      ; call 0F98:1FB0
  109. ;
  110. CHA $      9AB81F980F      ; call 0F98:1FB8
  111. ;
  112. VER 39BB   9AB01F980F      ; call 0F98:1FB0
  113. ;
  114. CHA $      9AB81F980F      ; call 0F98:1FB8
  115. ;
  116. VER 39CF   9AB01F980F      ; call 0F98:1FB0
  117. ;
  118. CHA $      9AB81F980F      ; call 0F98:1FB8
  119. ;
  120. VER 39E1   9AB01F980F      ; call 0F98:1FB0
  121. ;
  122. CHA $      9AB81F980F      ; call 0F98:1FB8
  123. ;
  124. ;
  125. ; --------------------------------------------------------------------------
  126. ; Fix date display of the message info screen
  127. ; ('110 instead of '10 and so on). Previously, a three digit year number
  128. ; was pushed to the stack from 2000 on.
  129. ;
  130. VER 2440   FF740A          ; push word ptr [si+0a]
  131. ;
  132. CHA $      CD4B+           ; int 4b         ; call service routine #4
  133.            90              ; nop            ; instead
  134. ;
  135. ;
  136. ; --------------------------------------------------------------------------
  137. ; Fix incorrect interpretation of a hudson time stamp which led to
  138. ; totally wrong display of a hudson message date after 2000.
  139. ;
  140. VER 2D6B9  8B46F2          ; mov ax, word ptr [bp-08]
  141. ;
  142. CHA $      CD4C+           ; int 4c         ; call service routine #5
  143.            90              ; nop            ; instead
  144. ;
  145. ; Done!
  146. ;
  147.