home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / utils / fcons1.zip / SK111.PCH < prev    next >
Text File  |  1986-06-30  |  3KB  |  80 lines

  1. A
  2. ;    This is file SK111.PCH
  3. ;
  4. ;The following command should be applied to SK.COM
  5. ;(Version 1.11A or equivalent, unnecessary for 1.5)
  6. ;to patch it so that LEFT SHIFT-RIGHT SHIFT is used
  7. ;to enter Sidekick instead of ALT-CTRL.
  8. ;This allows the use of FANSI-CONSOLE's ALT-CTRL
  9. ;key combinations without waking up Sidekick.
  10. ;Note that the patched routine may not be in exactly
  11. ;the same place in your version of Sidekick.
  12. ;With the following command, DEBUG will apply these
  13. ;patches to SideKick.  It will also display this
  14. ;patch file on the screen as it does it.
  15. ;For DOS 2, the comment lines will generate error msgs.
  16. ;This is OK!
  17. ;----------------------------------------------
  18. ;    debug sk.com <sk111.pch
  19. ;----------------------------------------------
  20. ;The following routine will appear at ABOUT the same
  21. ;place in your version, check the address and
  22. ;change the patch address if it is different in your version.
  23. ;This checks for Alt-Ctrl to enter SideKick.
  24. ;xxxx:0876 50        PUSH    AX                
  25. ;xxxx:0877 2E        CS:                    
  26. ;xxxx:0878 803E360200    CMP    BYTE PTR [0236],00        
  27. ;xxxx:087D 7510     JNZ    088F                
  28. ;xxxx:087F 2E        CS:                    
  29. ;xxxx:0880 A06A0A    MOV    AL,[0A6A]            
  30. ;xxxx:0883 240F     AND    AL,0F                
  31. ;xxxx:0885 3C0C     CMP    AL,0C                
  32. ;xxxx:0887 7406     JZ    088F    ;Replace this jump with NOPs
  33. ;xxxx:0889 3C03     CMP    AL,03                
  34. ;xxxx:088B 7402     JZ    088F                
  35. ;xxxx:088D 58        POP    AX                
  36. ;xxxx:088E CF        IRET                    
  37.  
  38. a887
  39. nop
  40. nop
  41. ;If you want SK to check for something other than Left-Shift-Right-Shift
  42. ;Change the 03 on the following line to:
  43. ;    05    for Ctrl-Right-Shift
  44. ;    06    for Ctrl-Left-Shift
  45. ;    09    for Alt-Right-Shift
  46. ;    0a    for Alt-Left-Shift
  47. ;And then remove the semi-colon at the start of the line:
  48. ;cmp    al,03
  49.  
  50. A
  51. ;The following routine will appear at ABOUT the same
  52. ;place in your version, check the address and
  53. ;change the patch address if it is different in your version.
  54. ;This checks for Alt-Ctrl to exit SideKick (Alt checked previously).
  55. ;xxxx:1972 833EC60200    CMP    WORD PTR [02C6],+00        
  56. ;xxxx:1977 75EB     JNZ    1964                
  57. ;xxxx:1979 F606C50204    TEST    BYTE PTR [02C5],04        
  58. ;xxxx:197E 751D     JNZ    199D        ;Replace this jump with NOPs.
  59. ;xxxx:1980 80FA03    CMP    DL,03                
  60. ;xxxx:1983 7418     JZ    199D                
  61. ;xxxx:1985 FF0EC802    DEC    WORD PTR [02C8]         
  62. ;xxxx:1989 75D9     JNZ    1964                
  63. ;xxxx:198B C706C8029600 MOV    WORD PTR [02C8],0096        
  64. ;xxxx:1991 F6443C01    TEST    BYTE PTR [SI+3C],01
  65.  
  66. a197e
  67. nop
  68. nop
  69. ;If you want SK to check for something other than Left-Shift-Right-Shift
  70. ;Change the 03 on the following line to:
  71. ;    05    for Ctrl-Right-Shift
  72. ;    06    for Ctrl-Left-Shift
  73. ;    09    for Alt-Right-Shift
  74. ;    0a    for Alt-Left-Shift
  75. ;And then remove the semi-colon at the start of the line:
  76. ;cmp    dl,03
  77.  
  78. w
  79. q
  80.