home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #3.1 / RBBSIABOX31.cdr / typd / trap_qb2.pat < prev    next >
Encoding:
Text File  |  1986-11-15  |  1.1 KB  |  39 lines

  1. Here is the recipe to remove the HALT which QuickBASIC executes
  2. when an unrecoverable error is encountered. Should be okay with
  3. all versions of QB.(rev. 2)
  4.  
  5. Note: Make sure you have backups of any files your are going
  6. modify with DEBUG.....Edsel Murphy is not dead........
  7.  
  8. A> debug bcom20.lib <---- get a fresh copy if you used rev. 1
  9.  
  10. -S xxxx:1 FFFF 75 FD E2 F8 E8
  11. Where xxxx equals the DS register
  12.  
  13. xxxx:3568
  14.  
  15. -U 3568 3575
  16.  
  17. xxxx:3568 75FD       JNZ  3567
  18. xxxx:356A E2F8       LOOP 3564
  19. xxxx:356C E80000     CALL 356F
  20. xxxx:356F E80000     CALL 3572 <---- this does the INT 16 call
  21. xxxx:3572 E80000     CALL 3575
  22. xxxx:3575 C3         RET
  23.  
  24. -E xxxx:356F C3
  25.  
  26. This now places a return where it used to wait for KYBD input.
  27.  
  28. -W
  29.  
  30. Once you have done this now comes the fun part of re-LINKing all
  31. of your programs.
  32.  
  33. Ray Horton 10/23/86 rev. 2
  34.  
  35. 9/8/86 rev. 1 - tried to isolate traps to INT 16 calls. This
  36. worked but left the INPUT$ call inoperable.
  37. 10/23/86 rev. 2 - patched library at a point which calls routines
  38. that use INT 16 calls.
  39.