home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / pg / pg200 / dbg.200 < prev    next >
Text File  |  2006-10-19  |  6KB  |  210 lines

  1. DBG.200 BY Paul Globman
  2. Copyright (c) 1985,1989
  3.  
  4. Run the BASIC loader to create DBG.CO.
  5.  
  6. DBG.CO prompts for user input with the ">" prompt.  You can then enter one of 
  7. nine (9) commands.
  8.  
  9. These commands are: 
  10.  
  11.    A = Add (and subtract) HEX numbers.
  12.    B = Back to T200 menu.
  13.    C = Compare memory blocks.
  14.    D = Display memory contents.
  15.    E = Examine or replace memoy.
  16.    F = Find a byte sequence.
  17.    G = Go to a HEX address and execute.
  18.    H = HEX to decimal conversion.
  19.    I = Integer (decimal to HEX) conversion
  20.  
  21. All values are entered and displayed in HEX.  When entering a HEX number, the 
  22. last four digits are used, so F25F33 will be the same as 5F33.
  23.  
  24. Parameters can be separated with a comma (,) or space.  Upper or lower case may
  25. be used.
  26.  
  27. All Errors are displayed as a "*" and the command is aborted, with a return 
  28. to the ">" prompt.
  29.  
  30. If a lengthy section of RAM is being displayed, the scrolling can be paused 
  31. and restarted with the spacebar.  The ESC key will abort the display.
  32.  
  33.  
  34. THE COMMAND SYNTAX.
  35. -------------------
  36.  
  37. A = Add (and subtract) HEX numbers.
  38. -----------------------------------
  39.  
  40.   A1000,1010<cr>
  41.   2010 FFF0     (sum difference)
  42.  
  43.  
  44. B = Back to T200 menu
  45. ---------------------
  46.  
  47.  
  48. C = Compare memory blocks
  49. -------------------------
  50.  
  51.   C1000,2000,3000<cr>
  52.   100F 00 FF*
  53.  
  54.  
  55. Compare block from 1000 to 2000, with block beginning at 3000, and display 
  56. first non-match (address and values).
  57.  
  58.  
  59. D = Display memory contents
  60. ---------------------------
  61.  
  62.    D1000,1FFF<cr>
  63.    1000  2E 34 00 FE 8F 19 DD F0
  64.    1008  EF FD B2 96 C3 05 F0 23
  65.     .
  66.     .
  67.    1FF8  DE 2E 41 BC C0 34 C0 C0
  68.  
  69.  
  70. E = Examine or replace memoy
  71. ----------------------------
  72.  
  73.    EFB00 23- ED- A4-/ED-/23-
  74.  
  75. After the "-" you can type a hex byte and it will get installed at the 
  76. location.  A space character will display the next location and a "/" 
  77. will back up one location in memory.
  78.  
  79.  
  80. F = Find a byte sequence
  81. ------------------------
  82.  
  83.    F1000 3<cr>
  84.    1000
  85.  
  86. This will look for a match of the 3 bytes beginning at 1000 and display all
  87. location where these bytes are found.  All of memory (RAM and ROM) is searched.
  88.  
  89.  
  90. G = Go to a HEX address and execute.
  91. ------------------------------------
  92.  
  93.    G4F45<cr> will BEEP and return.
  94.  
  95. If the code being executed ends in a return, then after execution you will 
  96. remain in the DBG program.
  97.  
  98.  
  99. H = HEX to decimal conversion.
  100. ------------------------------
  101.  
  102.    H1000 4096
  103.  
  104. 1000H equals 4096 (decimal)
  105.  
  106.  
  107. I = Integer (decimal to HEX) conversion.
  108. ----------------------------------------
  109.  
  110.    I4096
  111.    H1000 4096
  112.  
  113. The HEX and decimal equivalent values are desplayed on the next line, in the
  114. same format used by the H command.
  115.  
  116.  
  117. NOTE: The stack is set at FFFFH.  A safe area for E)ntering byte sequences,
  118. which can then be used with the F)ind command is FF00H.
  119.  
  120. Example: EFF00 00-C3 00-45 00-4F<cr>
  121.  
  122. This replaces the three 00's located at FF00H with C3 45 4F (JMP 4F45H).
  123.  
  124. Example: FFF00,3<cr>
  125.  
  126. This will F)ind and display all locations in ROM or RAM memory where 
  127. this byte sequence is found.
  128.  
  129.  
  130. 1 '************************
  131. 2 '*  DBG   .CO           *
  132. 3 '*    by Paul Globman   *
  133. 4 '*  Copyright (c) 1989  *
  134. 5 '************************
  135. 10 FOR I = 63572 TO 64047 
  136. 20 READ X:POKE I,X:SM=SM+X
  137. 30 NEXT
  138. 40 IF SM = 76483 THEN 60
  139. 50 PRINT"error in data":STOP
  140. 60 SAVEM"DBG.CO",63572,64047,63572
  141. 1000 DATA 49,255,255,33,84,248,229
  142. 1010 DATA 205,42,250,62,62,231,205
  143. 1020 DATA 242,249,230,127,202,97,248
  144. 1030 DATA 214,65,248,254,9,208,135
  145. 1040 DATA 33,124,248,133,111,126,35
  146. 1050 DATA 102,111,14,2,233,104,249
  147. 1060 DATA 0,0,3,249,18,249,214
  148. 1070 DATA 248,180,248,165,248,170,248
  149. 1080 DATA 142,248,205,246,84,218,31
  150. 1090 DATA 250,35,205,22,9,235,220
  151. 1100 DATA 31,250,62,72,231,205,176
  152. 1110 DATA 249,195,11,71,205,53,249
  153. 1120 DATA 225,233,205,53,249,225,205
  154. 1130 DATA 179,249,195,11,71,205,37
  155. 1140 DATA 250,75,235,33,0,0,205
  156. 1150 DATA 42,250,197,213,229,205,17
  157. 1160 DATA 110,225,229,204,176,249,225
  158. 1170 DATA 209,193,35,124,181,194,191
  159. 1180 DATA 248,195,42,250,205,53,249
  160. 1190 DATA 225,126,205,122,249,205,200
  161. 1200 DATA 249,216,202,245,248,254,47
  162. 1210 DATA 202,255,248,229,205,96,249
  163. 1220 DATA 209,225,115,120,254,13,200
  164. 1230 DATA 35,125,230,7,204,173,249
  165. 1240 DATA 195,218,248,43,195,246,248
  166. 1250 DATA 205,43,249,10,190,194,16
  167. 1260 DATA 250,3,205,184,249,195,6
  168. 1270 DATA 249,205,37,250,205,173,249
  169. 1280 DATA 205,179,249,126,205,122,249
  170. 1290 DATA 205,184,249,125,230,7,194
  171. 1300 DATA 24,249,195,21,249,12,205
  172. 1310 DATA 55,249,205,42,250,195,12
  173. 1320 DATA 250,14,1,33,0,0,205
  174. 1330 DATA 242,249,71,205,220,249,218
  175. 1340 DATA 77,249,41,41,41,41,181
  176. 1350 DATA 111,195,58,249,227,229,120
  177. 1360 DATA 205,208,249,210,88,249,13
  178. 1370 DATA 200,194,31,250,13,194,55
  179. 1380 DATA 249,201,14,1,33,0,0
  180. 1390 DATA 195,61,249,205,37,250,229
  181. 1400 DATA 25,205,176,249,225,183,213
  182. 1410 DATA 193,8,124,205,122,249,125
  183. 1420 DATA 245,15,15,15,15,205,131
  184. 1430 DATA 249,241,205,163,249,245,121
  185. 1440 DATA 231,205,142,249,241,201,197
  186. 1450 DATA 213,229,205,3,139,225,209
  187. 1460 DATA 193,200,254,27,202,31,250
  188. 1470 DATA 254,32,192,195,6,250,230
  189. 1480 DATA 15,198,144,39,206,64,39
  190. 1490 DATA 79,201,205,42,250,205,117
  191. 1500 DATA 249,14,32,195,134,249,205
  192. 1510 DATA 190,249,208,209,201,35,124
  193. 1520 DATA 181,55,200,123,149,122,156
  194. 1530 DATA 201,14,45,205,134,249,205
  195. 1540 DATA 242,249,254,32,200,254,44
  196. 1550 DATA 200,254,13,55,200,63,201
  197. 1560 DATA 214,48,216,254,23,63,216
  198. 1570 DATA 254,10,63,208,214,7,254
  199. 1580 DATA 10,201,205,6,250,230,127
  200. 1590 DATA 201,205,236,249,200,60,248
  201. 1600 DATA 61,254,13,200,231,254,64
  202. 1610 DATA 216,254,123,208,230,95,201
  203. 1620 DATA 229,213,197,205,247,18,193
  204. 1630 DATA 209,225,201,71,205,176,249
  205. 1640 DATA 126,205,122,249,205,179,249
  206. 1650 DATA 120,205,122,249,62,42,231
  207. 1660 DATA 195,84,248,205,55,249,209
  208. 1670 DATA 225,245,205,62,79,241,201
  209. 1680 REM       END OF DATA
  210.