home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / KAYPRO / SD-QUIET.LBR / SD-QUIET.DQC / SD-QUIET.DOC
Text File  |  2000-06-30  |  13KB  |  230 lines

  1.             DOCUMENTATION for SD-QUIET.COM    11/11/86  S.H. Isaac  
  2.  
  3.     I usually call this modified directory program D.COM, but for now 
  4. I called it this name to indicate that it quiets the keyboard chirp 
  5. of the Kaypro 2-84. It also changes the cursor from a blinking block to a 
  6. blinking underline.  How it will work on other computers remains to be 
  7. seen. If it doesn't do what you want, check your computer's manual & find 
  8. out what bytes should be sent to the keyboard and/or the video controller 
  9. (it has some other name, but I forget what it is).
  10.     
  11.     The byte 8 is sent to the keyboard and quiets it. Then another byte
  12. is sent to the video to select what aspect of it to deal with; the byte
  13. 0A selects cursor nature( height, blink rate, etc). Then the byte 6F is
  14. sent to the video to tell it to make the cursor a fast blinking under-
  15. line.
  16.  
  17.     The sequence of bytes is:
  18.  
  19.      3E08
  20.      D305             Quiets keyboard.
  21.  
  22.      3E0A
  23.      D31C             Selects cursor nature as video aspect to work on.
  24.  
  25.      3E6F
  26.      D31D             Sends byte to change cursor.
  27.  
  28. [I put the same sequence in WordStar.COM, at address 300h (in the user-
  29.  patching area), and followed it immediately with this one:
  30.      
  31.      0EOE 1E01 CD0500  
  32.  
  33.  This logs on to drive B before jumping (via C3FC2C) back to where 
  34.  WordStar was going in the first place]
  35.  
  36.     
  37.    I got the cursor changing from an article in PROFiles magazine, sorry
  38. I forgot which one, but it was sometime between December 1984 and now
  39. (December 1986).  The keyboard quieting was based on something from the
  40. Kaypro manual, and maybe on something I read elsewhere.
  41.  
  42.    Probably the directory program I patched was SD.COM, which mau have 
  43. come from a bulletin board.  It was chosen because it has a nice big 
  44. empty area, which is around address 860h when viewed with EDFILE.COM
  45. or DDT.COM.
  46.  
  47.    SD.COM starts with a JMP to address 113h.  What we do is change that
  48. to JMP to our quieting-and-cursor-changing statements at address 0860,
  49. then to JMP to 113 where the program can go on about its business.
  50.  
  51.    Subsequently I used DU.COM to make this modified directory program
  52. auto-execute on a cold start or reset. Put the command, such as
  53. D *.* $D  at byte 08h on sector 2, track 0 ; put the length of the
  54. command, in this example 8 (bytes long), at byte 07h, just preceding
  55. the command. Clear out any junk (such as DRI's copyright notice)
  56. after the command you want autoexecuted, if it interferes with proper
  57. operation of the command. DON'T blank out anything if you are not
  58. sure of what you're doing.
  59.  
  60.    Feel free to change this documentation or the program & pass it
  61. around. If you can, let me know what you've come up with.
  62.  
  63.    Here's how to modify SD.COM, a (public domain?) directory program,
  64. using EDFILE.COM.  The latter can be found on SIG/M volume 228, and
  65. maybe on bulletin boards also.  My comments are in curly braces, 
  66. {like this}.
  67.  
  68. A0>SW B:SD.COM
  69.  
  70. NSWEEP   -  Version 2.07     07/17/1984
  71.         (c) Dave Rand, 1983, 1984
  72.             Edmonton, Alberta
  73.  
  74. Drive B0:SD      .COM     4K in    1 files.    58K free.
  75.    1. B0: SD      .COM    4K : C  Copy to (filespec)? A:SD-QUIET.COM V
  76. Verifying --> file ok.
  77.    1. B0: SD      .COM    4K : X
  78. A0>
  79.  
  80. A0>B:EDFILE SD-QUIET.COM
  81.  
  82. Vers: 01-10-84; by: J.C.Kaltwasser & M.J.Mosko, K3RL
  83.  
  84. File: SD-QUIET.COM  Record: 00000 (0000H)   LOF: 00018 (0012H)
  85.         00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F       0123456789ABCDEF
  86.         -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --       ----------------
  87. 0100  - C3 13 01 53 44 20 34 2E 34 20 2D 20 32 38 66 65      >C..SD 4.4 - 28fe<
  88. 0110  - 62 38 32 21 00 00 39 22 54 09 31 54 09 0E 0C CD      >b82!..9"T.1T...M<
  89. 0120  - 05 00 7D 32 17 09 FE 20 1E FF 0E 20 D4 0E 07 32      >..}2..~ . . T..2<
  90. 0130  - 0B 09 32 07 09 32 F2 08 0E 19 CD 0E 07 32 0A 09      >..2..2r...M..2..<
  91. 0140  - 3C 32 51 08 21 5C 00 7E B7 C2 50 01 3A 0A 09 3C      ><2Q.!\.~7BP.:..<<
  92. 0150  - 77 21 80 00 46 23 05 FA CD 01 7E FE 24 C2 55 01      >w!..F#.zM.~~$BU.<
  93. 0160  - 2B 7E 23 FE 20 C2 55 01 EB 13 05 FA CD 01 1A FE      >+~#~ BU.k..zM..~<
  94. 0170  - 20 CA 69 01 21 45 08 0E 04 23 0D CA 87 01 BE C2      > Ji.!E...#.J..>B<
  95. ?      {Enter H at the ? prompt, to get the Help shown below}
  96.  
  97. Read/Edit File Utility Functions:
  98. A - Address to dump         B - Dump at beginning       C - Continue Search
  99. E - Enter Edit Mode         H - This help list          M - Expanded Help list
  100. O - Set address offset      Q - Quit this program       R - Read & dump record
  101. S - Search for string       Z - Dump at end of file     CR - (+/=) - Adv record
  102. (-/_) - Decr record
  103.  
  104. Edit Mode Functions:
  105. ^E - Toggle data fields     ^W - Write buffer out       ^X - Abort Edit Mode
  106. ^J - Cursor Down            ^K - Cursor Up              ^H - Cursor Left
  107. ^L - Cursor Right
  108.  
  109. File: SD-QUIET.COM  Record: 00000 (0000H)   LOF: 00018 (0012H)
  110.         00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F       0123456789ABCDEF
  111.         -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --       ----------------
  112. 0100  - C3 13 01 53 44 20 34 2E 34 20 2D 20 32 38 66 65      >C..SD 4.4 - 28fe<
  113. 0110  - 62 38 32 21 00 00 39 22 54 09 31 54 09 0E 0C CD      >b82!..9"T.1T...M<
  114. 0120  - 05 00 7D 32 17 09 FE 20 1E FF 0E 20 D4 0E 07 32      >..}2..~ . . T..2<
  115. 0130  - 0B 09 32 07 09 32 F2 08 0E 19 CD 0E 07 32 0A 09      >..2..2r...M..2..<
  116. 0140  - 3C 32 51 08 21 5C 00 7E B7 C2 50 01 3A 0A 09 3C      ><2Q.!\.~7BP.:..<<
  117. 0150  - 77 21 80 00 46 23 05 FA CD 01 7E FE 24 C2 55 01      >w!..F#.zM.~~$BU.<
  118. 0160  - 2B 7E 23 FE 20 C2 55 01 EB 13 05 FA CD 01 1A FE      >+~#~ BU.k..zM..~<
  119. 0170  - 20 CA 69 01 21 45 08 0E 04 23 0D CA 87 01 BE C2      > Ji.!E...#.J..>B<
  120. ?RECORD=14     {Enter R at the ? prompt, EDFILE will display
  121.                  RECORD=, then enter 14 <CR>}       
  122.  
  123. File: SD-QUIET.COM  Record: 00014 (000EH)   LOF: 00018 (0012H)
  124.         00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F       0123456789ABCDEF
  125.         -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --       ----------------
  126. 0800  - 45 20 6F 6E 20 20 20 2D A0 0D 0A 2D 3E 44 72 69      >E on   - ..->Dri<
  127. 0810  - 76 65 A0 2C 20 75 73 65 72 A0 20 63 6F 6E 74 61      >ve , user  conta<
  128. 0820  - 69 6E 73 A0 4B 20 69 6E A0 20 66 69 6C 65 73 20      >ins K in  files <
  129. 0830  - 77 69 74 68 A0 4B 20 66 72 65 E5 55 73 65 72 20      >with K freeUser <
  130. 0840  - A3 00 09 09 09 09 41 44 7D E7 07 E7 07 72 08 80      >#.....AD}g.g.r..<
  131. 0850  - 00 00 53 44 20 20 20 20 20 20 44 49 52 00 00 00      >..SD      DIR...<
  132. 0860  - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00      >................<
  133. 0870  - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00      >................<
  134. ?Edit Record      {See all the zeros at address 0860?. That's where
  135.                    we'll put the patch. Enter E to edit this record}
  136.  
  137.         {EDFILE will redisplay this record (14) with the cursor
  138.          on the first byte (45 hex), located at 0800. Move the cursor 
  139.          straight down to byte 0860, the first of the row of 00s.
  140.          Then just type in the replacement bytes as shown below} 
  141.  
  142. File: SD-QUIET.COM  Record: 00014 (000EH)   LOF: 00018 (0012H)
  143.         00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F       0123456789ABCDEF
  144.         -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --       ----------------
  145. 0800  - 45 20 6F 6E 20 20 20 2D A0 0D 0A 2D 3E 44 72 69      >E on   - ..->Dri<
  146. 0810  - 76 65 A0 2C 20 75 73 65 72 A0 20 63 6F 6E 74 61      >ve , user  conta<
  147. 0820  - 69 6E 73 A0 4B 20 69 6E A0 20 66 69 6C 65 73 20      >ins K in  files <
  148. 0830  - 77 69 74 68 A0 4B 20 66 72 65 E5 55 73 65 72 20      >with K freeUser <
  149. 0840  - A3 00 09 09 09 09 41 44 7D E7 07 E7 07 72 08 80      >#.....AD}g.g.r..<
  150. 0850  - 00 00 53 44 20 20 20 20 20 20 44 49 52 00 00 00      >..SD      DIR...<
  151. 0860  - 3E 08 D3 05 3E 0A D3 1C 3E 6F D3 1D C3 13 01 00      >>.S.>.S.>oS.C...<
  152. 0870  - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00      >................<
  153. ?        {When the bytes are all changed correctly,
  154.           enter CTRL-w. This writes the changed record
  155.           to the disk, replacing the one that was there
  156.           before in the file. EDFILE then redisplays it.}
  157.  
  158. File: SD-QUIET.COM  Record: 00014 (000EH)   LOF: 00018 (0012H)
  159.         00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F       0123456789ABCDEF
  160.         -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --       ----------------
  161. 0800  - 45 20 6F 6E 20 20 20 2D A0 0D 0A 2D 3E 44 72 69      >E on   - ..->Dri<
  162. 0810  - 76 65 A0 2C 20 75 73 65 72 A0 20 63 6F 6E 74 61      >ve , user  conta<
  163. 0820  - 69 6E 73 A0 4B 20 69 6E A0 20 66 69 6C 65 73 20      >ins K in  files <
  164. 0830  - 77 69 74 68 A0 4B 20 66 72 65 E5 55 73 65 72 20      >with K freeUser <
  165. 0840  - A3 00 09 09 09 09 41 44 7D E7 07 E7 07 72 08 80      >#.....AD}g.g.r..<
  166. 0850  - 00 00 53 44 20 20 20 20 20 20 44 49 52 00 00 00      >..SD      DIR...<
  167. 0860  - 3E 08 D3 05 3E 0A D3 1C 3E 6F D3 1D C3 13 01 00      >>.S.>.S.>oS.C...<
  168. 0870  - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00      >................<
  169. ?           { Now we enter B at the ? prompt; it dumps
  170.               at the Beginning of the file}
  171.  
  172. File: SD-QUIET.COM  Record: 00000 (0000H)   LOF: 00018 (0012H)
  173.         00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F       0123456789ABCDEF
  174.         -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --       ----------------
  175. 0100  - C3 13 01 53 44 20 34 2E 34 20 2D 20 32 38 66 65      >C..SD 4.4 - 28fe<
  176. 0110  - 62 38 32 21 00 00 39 22 54 09 31 54 09 0E 0C CD      >b82!..9"T.1T...M<
  177. 0120  - 05 00 7D 32 17 09 FE 20 1E FF 0E 20 D4 0E 07 32      >..}2..~ . . T..2<
  178. 0130  - 0B 09 32 07 09 32 F2 08 0E 19 CD 0E 07 32 0A 09      >..2..2r...M..2..<
  179. 0140  - 3C 32 51 08 21 5C 00 7E B7 C2 50 01 3A 0A 09 3C      ><2Q.!\.~7BP.:..<<
  180. 0150  - 77 21 80 00 46 23 05 FA CD 01 7E FE 24 C2 55 01      >w!..F#.zM.~~$BU.<
  181. 0160  - 2B 7E 23 FE 20 C2 55 01 EB 13 05 FA CD 01 1A FE      >+~#~ BU.k..zM..~<
  182. 0170  - 20 CA 69 01 21 45 08 0E 04 23 0D CA 87 01 BE C2      > Ji.!E...#.J..>B<
  183. ?Edit Record   {Enter E to Edit the record. It will be
  184.                 be redisplayed with the cursor on the
  185.                 first record in the hex field, at address
  186.                 0100. That byte is C3, which means jump.
  187.                 We want to jump, all right, but to the
  188.                 address 0860, where the patch starts.
  189.                 Move the cursor right to the byte 13,
  190.                 at address 0101. Then type in 60 and then
  191.                 08. Do not change anything else, just put 60
  192.                 at byte 101 and 08 at byte 102. The display
  193.                 with the two changed bytes should look like the below.}
  194.  
  195.  
  196. File: SD-QUIET.COM  Record: 00000 (0000H)   LOF: 00018 (0012H)
  197.         00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F       0123456789ABCDEF
  198.         -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --       ----------------
  199. 0100  - C3 60 08 53 44 20 34 2E 34 20 2D 20 32 38 66 65      >C`.SD 4.4 - 28fe<
  200. 0110  - 62 38 32 21 00 00 39 22 54 09 31 54 09 0E 0C CD      >b82!..9"T.1T...M<
  201. 0120  - 05 00 7D 32 17 09 FE 20 1E FF 0E 20 D4 0E 07 32      >..}2..~ . . T..2<
  202. 0130  - 0B 09 32 07 09 32 F2 08 0E 19 CD 0E 07 32 0A 09      >..2..2r...M..2..<
  203. 0140  - 3C 32 51 08 21 5C 00 7E B7 C2 50 01 3A 0A 09 3C      ><2Q.!\.~7BP.:..<<
  204. 0150  - 77 21 80 00 46 23 05 FA CD 01 7E FE 24 C2 55 01      >w!..F#.zM.~~$BU.<
  205. 0160  - 2B 7E 23 FE 20 C2 55 01 EB 13 05 FA CD 01 1A FE      >+~#~ BU.k..zM..~<
  206. 0170  - 20 CA 69 01 21 45 08 0E 04 23 0D CA 87 01 BE C2      > Ji.!E...#.J..>B<
  207. ?        { Another CTRL-w will write this record (with
  208.            the modified initial jump), to your disk file,
  209.            and redisplay it.}
  210.  
  211. File: SD-QUIET.COM  Record: 00000 (0000H)   LOF: 00018 (0012H)
  212.         00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F       0123456789ABCDEF
  213.         -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --       ----------------
  214. 0100  - C3 60 08 53 44 20 34 2E 34 20 2D 20 32 38 66 65      >C`.SD 4.4 - 28fe<
  215. 0110  - 62 38 32 21 00 00 39 22 54 09 31 54 09 0E 0C CD      >b82!..9"T.1T...M<
  216. 0120  - 05 00 7D 32 17 09 FE 20 1E FF 0E 20 D4 0E 07 32      >..}2..~ . . T..2<
  217. 0130  - 0B 09 32 07 09 32 F2 08 0E 19 CD 0E 07 32 0A 09      >..2..2r...M..2..<
  218. 0140  - 3C 32 51 08 21 5C 00 7E B7 C2 50 01 3A 0A 09 3C      ><2Q.!\.~7BP.:..<<
  219. 0150  - 77 21 80 00 46 23 05 FA CD 01 7E FE 24 C2 55 01      >w!..F#.zM.~~$BU.<
  220. 0160  - 2B 7E 23 FE 20 C2 55 01 EB 13 05 FA CD 01 1A FE      >+~#~ BU.k..zM..~<
  221. 0170  - 20 CA 69 01 21 45 08 0E 04 23 0D CA 87 01 BE C2      > Ji.!E...#.J..>B<
  222. ?         {Enter Q to quit EDFILE; your patched program
  223.            should be ready to use}
  224.  
  225. A0>
  226.                 Good luck. Let me know of any problems or
  227.                 comments. Sheldon H. Isaac, 5339 Greene Street,
  228.                 Philadelphia, PA 19144   215-842-0863
  229.                 December 15, 1986Sheldon H. Isaac, 5339 Greene Street,
  230.                 Philadelphia, PA 19144   21