home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug002.arc / DASM.HLP < prev    next >
Text File  |  1979-12-31  |  9KB  |  362 lines

  1. á        Introductioε t∩ DASM
  2.  
  3. áPrograφ operation
  4. áImportan⌠ notes
  5. áCommand║ ┴ ¡ Attemp⌠ t∩ finΣ DB's
  6. áCommand║ ┬ ¡ BuilΣ symbo∞ table
  7. áCommand║ ├ ¡ Contro∞ tablσ ì
  8. á             modify/display
  9. áCommand║ ─ ¡ Dum≡ hex
  10. áCommand║ D╙¡ Dum≡ symbo∞ table
  11. áCommand║ ┼ ¡ Ente≥ label
  12. áCommand║ ╞ ¡ FinΣ address
  13. áCommand║ ╦ ¡ Kil∞ symbol
  14. áCommand║ ╠ ¡ List
  15. áCommand║ ╧ ¡ Se⌠ Origin
  16. áCommand║ ╨ ¡ Generatσ Prologue
  17. áCommand║ ╤ ¡ Quitσ mode
  18. áCommand║ ╥ ¡ ReaΣ files
  19. áCommand║ ╙ ¡ Savσ files
  20. áCommand║ ╒ ¡ Ummmmmmn...
  21. áCommand║ ╪ ¡ Purgσ symbo∞ ª contro∞ ì
  22. á             tables
  23. áCommand║ ┌ ¡ Writσ enΣ oµ file
  24. áCommand║ ╗ ¡ Enter/displa∙ comment
  25.  
  26. á            Introduction
  27.  
  28. á    DAS═ i≤ anothe≥ creatioε oµ ì
  29. áRicharΣ (ZCPR⌐ Conε baseΣ upoε ì
  30. ápreviou≤ effort≤ b∙ WarΣ Christenseε ì
  31. áanΣ Davσ Barker.
  32. á    Thi≤ prograφ i≤ aε interactivσ ì
  33. ádisassemble≥ fo≥ 808░ (TDL)¼ Z80¼ ì
  34. á8048¼ anΣ 650▓ machinσ code¼ ì
  35. ádependinτ upoε whicΦ disassemble≥ ì
  36. ámodulσ i≤ used.
  37. á    Thσ genera∞ objec⌠ i≤ t∩ ì
  38. áregeneratσ ß sourcσ filσ fo≥ thσ ì
  39. áprograφ iε question« Durinτ thσ ì
  40. ádisassembl∙ process¼ threσ ì
  41. áintermediatσ file≤ arσ generateΣ iε ì
  42. áadditioε t∩ thσ .CO═ file« Thesσ are:
  43. á    1⌐ Thσ .CT╠ file« Thi≤ contain≤ ì
  44. áaddresse≤ a⌠ whicΦ datß o≥ table≤ arσ ì
  45. ástoreΣ rathe≥ thaε instructions.
  46. á    2⌐ Thσ .DO├ file« Thi≤ contain≤ ì
  47. ácomment≤ whicΦ yo⌡ enter¼ witΦ thσ ì
  48. áaddres≤ a⌠ whicΦ the∙ appear.
  49. á    3⌐ Thσ .SY═ file« Thi≤ contain≤ ß ì
  50. ális⌠ oµ label≤ anΣ thei≥ ì
  51. ácorrespondinτ addresses.
  52.  
  53. á    Thσ eventua∞ aiφ i≤ t∩ producσ ß ì
  54. á.AS═ filσ whicΦ caε bσ reassembled« ì
  55. áUsuall∙ thσ AS═ filσ produceΣ b∙ DAS═ ìèácaε bσ assembleΣ t∩ reproducσ thσ ì
  56. áorigina∞ CO═ file¼ bu⌠ t∩ producσ ß ì
  57. árelocateable¼ wel∞ documenteΣ sourcσ ì
  58. áfilσ wil∞ requirσ ß bi⌠ morσ effor⌠ ì
  59. áfroφ you.
  60.  
  61. á       Majo≥ feature≤ oµ DASM:
  62.  
  63. á1⌐ Automatiπ recognitioε oµ tex⌠        ì
  64. á   strings
  65. á2⌐ Automatiπ genaratioε oµ symbo∞ ì
  66. á   table.
  67. á3⌐ Interactivσ creatioε-deletioε-ì
  68. á   renaminτ oµ labels.
  69. á4⌐ Interactivσ partitioninτ oµ datß ì
  70. á   anΣ instructioε areas.
  71. á5⌐ Automatiπ generatioε oµ prologuσ ì
  72. á   t∩ source« (OR╟ anΣ EQUs)
  73. á6⌐ Simplσ additioε oµ comment≤ wherσ ì
  74. á   appropriate.
  75. á7⌐ "Featureiti≤ rampartisó ...
  76.  
  77. á          Prograφ operation
  78.  
  79. áImportan⌠ notes
  80. á===============
  81.  
  82. á    Whereve≥ ß he° valuσ i≤ required¼ ì
  83. áyo⌡ ma∙ suppl∙ ß symbo∞ precedeΣ b∙ ß ì
  84. áperiod¼ ie« ".symboló insteaΣ oµ ì
  85. ánnnn.
  86. á    An∙ commanΣ ma∙ bσ precedeΣ b∙ ì
  87. áthσ "Q"uie⌠ prefi° whicΦ wil∞ sto≡ i⌠ ì
  88. áfroφ printinτ t∩ thσ screen« Thi≤ ì
  89. áfeaturσ i≤ mainl∙ intendeΣ t∩ speeΣ ì
  90. áu≡ thσ operatioε oµ thσ "Aó anΣ "Bó ì
  91. ácommands.
  92.  
  93. áCommand║ ┴ ¡ Attemp⌠ t∩ finΣ DB's
  94.  
  95. áSyntax║ [Q▌ ┴ [ssss▌ [,eeee]
  96. á(Seσ "Ló commanΣ fo≥ examples)
  97.  
  98. á    List≤ t∩ thσ screeε froφ sss≤ t∩ ì
  99. áeeeσ a≤ fo≥ "L"¼ bu⌠ iµ an∙ string≤ ì
  100. áoµ ╕ o≥ morσ printablσ ASCI╔ ì
  101. ácharacter≤ arσ encountered¼ theε the∙ ì
  102. áarσ markeΣ a≤ datß iε thσ contro∞ ì
  103. átablσ b∙ placinτ ß "Bó entr∙ a⌠ thσ ì
  104. ástart¼ anΣ aε "Ió entr∙ afte≥ thσ ì
  105. áend« Seσ thσ "Có commanΣ fo≥ morσ ì
  106. áinformatioε oε contro∞ entries.
  107.  
  108. áCommand║ ┬ ¡ BuilΣ symbo∞ table
  109. èáSynta° ║ [Q▌ ┬ [ssss▌ [,eeee]
  110.  
  111. á    List≤ t∩ thσ screeε froφ sss≤ t∩ ì
  112. áeeeσ a≤ fo≥ "L"¼ bu⌠ ever∙ ▓ bytσ ì
  113. áoperanΣ encountereΣ i≤ placeΣ int∩ ì
  114. áthσ symbo∞ tablσ a≤ Lxxxx¼ wherσ thσ ì
  115. ávaluσ oµ thσ operanΣ i≤ xxx° iε hex« ì
  116. áSeσ thσ "Eó commanΣ t∩ ente≥ ne≈ ì
  117. álabel≤ o≥ renamσ curren⌠ ones¼ anΣ ì
  118. áthσ "Kó commanΣ t∩ kil∞ label≤ ì
  119. áalread∙ iε thσ table.
  120.  
  121. áCommand║ ├ ¡ Contro∞ tablσ ì
  122. á             modify/display
  123.  
  124. áSyntax║ ├  Dum≡ contro∞ table.
  125. á           Cnnnε Dum≡ contro∞ tablσ ì
  126. ástartinτ froφ nnnn.
  127. á           Cnnnn,° Se⌠ modσ t∩ ° ì
  128. á           unti∞ nex⌠ contro∞ ejtry.
  129.  
  130. á    Thσ firs⌠ tw∩ form≤ oµ thi≤ ì
  131. ácommanΣ allo≈ yo⌡ t∩ examinσ thσ ì
  132. ácontro∞ table¼ thσ thirΣ forφ i≤ useΣ ì
  133. át∩ ente≥ ne≈ entrie≤ int∩ thσ table« ì
  134. áDurinτ thσ listinτ process¼ thi≤ ì
  135. átablσ define≤ wherσ instruction≤ o≥ ì
  136. ádatß arσ t∩ bσ listed« EacΦ entr∙ iε ì
  137. áthσ tablσ define≤ thσ modσ t∩ bσ useΣ ì
  138. áunti∞ thσ nex⌠ contro∞ i≤ reached« ì
  139. áOfteε thσ majorit∙ oµ thσ codσ wil∞ ì
  140. ábσ iε "I"nstructioε mode¼ anΣ datß ì
  141. áarea≤ wil∞ bσ markeΣ b∙ ß "Bó entr∙ ì
  142. áa⌠ thσ star⌠ address¼ anΣ aε "Ió ì
  143. áentr∙ a⌠ thσ nex⌠ addres≤ afte≥ thσ ì
  144. áend.
  145. á    EacΦ entr∙ cause≤ ß "contro∞ ì
  146. ábreak"¼ meaninτ tha⌠ thσ ne≈ modσ ì
  147. ástart≤ oε anothe≥ line¼ s∩ b∙ ì
  148. áenterinτ multiplσ "Bó entrie≤ yo⌡ caε ì
  149. ámake
  150.  
  151. áD┬ 'TYPESAVEDI╥ ER┴ RE╬ '
  152.  
  153. áappea≥ as
  154.  
  155. áD┬ 'TYPE'
  156. áD┬ 'SAVE'
  157. áD┬ 'DI╥ '
  158. áD┬ 'ER┴ '
  159. áD┬ 'RE╬ '
  160.  
  161. áPossiblσ mode≤ are:
  162.  
  163. á┬ ╜ D┬ (show≤ printablσ ASCI╔ betweeε ìèáquotes¼ otherwisσ hex)
  164.  
  165. á├ ╜ D├ (show≤ tex⌠ betweeε quote≤ iµ ì
  166. ápossible¼ las⌠ characte≥ wil∞ havσ hΘ ì
  167. ábi⌠ set¼ otherwisσ print≤ a≤ ß DB)
  168.  
  169. á─ ╜ D┬ (datß i≤ showε iε decimal)
  170.  
  171. á┼ ╜ enΣ oµ disassembly
  172.  
  173. á╚ ╜ D┬ (datß i≤ showε iε hex)
  174.  
  175. áI = instructions
  176.  
  177. áK = kill this ctl entry
  178.  
  179. á╙ ╜ D╙ (u≡ t∩ nex⌠ ct∞ entry)
  180.  
  181. á╫ ╜ D╫ (attempt≤ label)
  182.  
  183. áCommand║ ─ ¡ Dum≡ hex
  184.  
  185. áSyntax║ ─ [=nε [,]▌ [ssss▌ [,eeee]
  186.  
  187. áDsss≤  Dump≤ 80╚ froφ sss≤ ì
  188. áon.
  189.  
  190. áDssss,eeeσ  Dump≤ froφ sss≤ ì
  191. áthrougΦ t∩ eeee.
  192. á
  193. áD,eeeσ   Dump≤ froφ curren⌠ locatioε ì
  194. áthrougΦ t∩ eeee.
  195.  
  196. á─    Dump≤ 80╚ froφ curren⌠ location.
  197.  
  198. áD=nε   Se⌠ defaul⌠ dum≡ sizσ t∩ nn
  199.  
  200. áD=nn,ssss  Set default size to nn then dump from ssss.
  201.  
  202. á┴ dum≡ sizσ oµ 10░ (hex⌐ wil∞ fi⌠ ì
  203. áeasil∙ ont∩ ß 2┤ linσ screen.
  204.  
  205. áCommand║ D╙¡ Dum≡ symbo∞ table
  206.  
  207. áSyntax║ D╙ [.symbol]
  208.  
  209. áD╙  Dump≤ symbo∞ tablσ iε ì
  210. áalphabetica∞ order.
  211.  
  212. áDS.symbo∞  Dump≤ tablσ startinτ a⌠ ì
  213. ásymbol.
  214.  
  215. áCommand║ ┼ ¡ Ente≥ label
  216.  
  217. áSyntax║ Ennnn,.symbolè
  218. á    Ente≥ symbo∞ ".symboló int∩ symbo∞ ì
  219. átablσ fo≥ addres≤ nnnn« Iµ ß symbo∞ ì
  220. áalread∙ exis⌠ a⌠ tha⌠ addres≤ theε ì
  221. áit≤ namσ i≤ displayeΣ a≤ "Labe∞ ì
  222. á.symbo∞ killed"« Iµ ß labe∞ oµ thσ ì
  223. ásamσ namσ exist≤ a⌠ anothe≥ addres≤ ì
  224. átheε i⌠ i≤ deleted¼ n∩ messagσ i≤ ì
  225. ádisplayeΣ (yet)« 
  226.  
  227. áCommand║ ╞ ¡ FinΣ address
  228.  
  229. áSyntax║ Fnnnn[,ssss]
  230.  
  231. áFinΣ an∙ referencσ t∩ addres≤ nnnn¼ ì
  232. áie« L─ A,(nnnn⌐ or
  233.  
  234. áCAL╠ nnnn« Thσ addres≤ t∩ star⌠ ì
  235. ásearchinτ froφ caε optionall∙ bσ ì
  236. áspecified.
  237.  
  238. áCommand║ ╦ ¡ Kil∞ symbol
  239.  
  240. áSyntax║ K.symbol
  241.  
  242. áThσ nameΣ symbo∞ i≤ deleteΣ froφ thσ ì
  243. ásymbo∞ table.
  244. á 
  245. áCommand║ ╠ ¡ List
  246.  
  247. áSyntax║ L[=nn][ssss][,eeee]
  248.  
  249. á∞ Lis⌠ nex⌠ 2▓ lines
  250. á
  251. álsss≤  Lis⌠ 2▓ line≤ froφ ssss
  252. á
  253. ál,eeeσ   Lis⌠ froφ curren⌠ pπ t∩ eeee
  254.  
  255. álssss,eeeσ  Lis⌠ froφ sss≤ t∩ eeee
  256.  
  257. ál=nε   Changσ defaul⌠ numbe≥ oµ line≤ ì
  258. áprinteΣ t∩ nε (nε i≤ iε he° anΣ i≤ ì
  259. ánominall∙ 16Φ o≥ 22dec)
  260.  
  261. áThi≤ commanΣ wil∞ no⌠ lis⌠ pas⌠ ß ì
  262. ácontro∞ 'eº entry
  263.  
  264. áCommand║ ╧ ¡ Se⌠ Origin
  265.  
  266. áSyntax║ Onnnn
  267.  
  268. á    Thσ basσ addres≤ oµ thσ filσ ì
  269. ábeinτ disassembleΣ i≤ se⌠ t∩ nnnn« ì
  270. áThi≤ iε turε set≤ ß ne≈ valuσ fo≥ thσ ì
  271. áoffset¼ whicΦ i≤ displayeΣ afte≥ ìèágivinτ thi≤ command« Thσ curren⌠ ì
  272. áorigiε i≤ displayeΣ iε thσ '?º lis⌠ ì
  273. áa≤ 'CO═ START'.
  274.  
  275. áCommand║ ╨ ¡ Generatσ Prologue
  276.  
  277. áSyntax║ Pssss,eeee
  278.  
  279. á    Thi≤ commanΣ i≤ useΣ whilσ ì
  280. álistinτ int∩ thσ .MA├ file« I⌠ ì
  281. ágeneratσ aε OR╟ sss≤ statement¼ theε ì
  282. áEQUate≤ fo≥ al∞ symbol≤ whicΦ arσ ì
  283. áoutsidσ thσ rangσ sss≤ t∩ eeee.
  284.  
  285. áCommand║ ╤ ¡ Quie⌠ mode
  286.  
  287. áSyntax║ Qcommand
  288.  
  289. á    Placinτ 'Qº beforσ an∙ othe≥ ì
  290. ácommanΣ wil∞ disablσ al∞ screeε ì
  291. áoutpu⌠ fo≥ thσ duratioε oµ tha⌠ ì
  292. ácommand« Thσ maiε applicatioε oµ thi≤ ì
  293. áfeaturσ i≤ t∩ speeΣ u≡ thσ 'Aº anΣ ì
  294. á'Bº commands
  295.  
  296. áCommand║ ╥ ¡ ReaΣ files
  297.  
  298. áSyntax║ Rfilename.ext
  299.  
  300. áRfilename.CO═  ReaΣ objec⌠ file
  301.  
  302. áRfilename.CT╠  ReaΣ Contro∞ Table
  303.  
  304. áRfilename.DO├  ReaΣ Comment≤ Table
  305.  
  306. áRfilename.SY═  ReaΣ Symbo∞ Table
  307.  
  308. áRfilename.AL╠  ReaΣ COM¼ CTL¼ DOC¼ ª ì
  309. áSY═ files
  310.  
  311. áCommand║ ╙ ¡ Savσ files
  312.  
  313. áSyntax║ S[filename.ext]
  314.  
  315. áSfilename.CT╠  Savσ Contro∞ Table
  316.  
  317. áSfilename.DO├  Savσ Comment≤ Table
  318.  
  319. áSfilename.SY═  Savσ Symbo∞ Table
  320.  
  321. áSfilename.MA├  Opeε MA├ filσ anΣ ì
  322. áenablσ outpu⌠ t∩ it
  323.  
  324. áSfilename.AL╠  Savσ al∞ abovσ files
  325. èá╙     Savσ al∞ file≤ usinτ previou≤ ì
  326. áfilename
  327.  
  328. áCommand║ ╒ ¡ Ummmmmmn...
  329.  
  330. áSyntax║ Unnnn
  331.  
  332. áGoΣ know≤ wha⌠ thi≤ does
  333. á 
  334. áCommand║ ╪ ¡ Purgσ symbo∞ ª contro∞ ì
  335. á             tables
  336.  
  337. áCommand║ ┌ ¡ Writσ enΣ oµ file
  338.  
  339. áCommand║ ╗ ¡ Enter/displa∙ comment
  340.  
  341. áSyntax║ ;[nnnn][,[;][comment]]
  342.  
  343. á╗     Lis⌠ comment≤ table.
  344.  
  345. á;nnnε  Lis⌠ commen⌠ a⌠ addres≤ nnnn.
  346.  
  347. á;nnnn¼  Deletσ commen⌠ a⌠ adres≤ ì
  348. ánnnn.
  349.  
  350. á;addr,commen⌠  Ente≥ commen⌠ a⌠ ì
  351. áaddres≤ nnnε t∩ lis⌠ oε linσ before.
  352.  
  353. á;addr,;commen⌠  Ente≥ commen⌠ a⌠ ì
  354. áaddres≤ nnnε t∩ lis⌠ oε samσ line.
  355.  
  356. á;oε  Turε symbo∞ comment≤ on.
  357.  
  358. á;oµ  Turε symbo∞ comment≤ off.├  ReaΣ Comment≤ Table
  359.  
  360. áRfilename.SY═  ReaΣ Symbo∞ Table
  361.  
  362. áRfilename.AL╠  Re