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 / MBUG / MBUG023.ARC / DASM16.HLP < prev    next >
Text File  |  1979-12-31  |  11KB  |  324 lines

  1. Commands summary
  2. General description of DASM
  3. Command details
  4. :Commands summary DASM v 1.6
  5.  
  6. ┴  Attemp⌠ t∩ finΣ DB's
  7. ┬  BuilΣ symbo∞ table
  8. ├  Contro∞ table addition
  9. ─  Dum≡ memory, hex & ascii
  10. ┼  Return from last go
  11. ╞  FinΣ address
  12. G  Go to another address
  13. H  Display online help
  14. ╦  Kil∞ table entry/entries
  15. ╠  List source code
  16. ╧  Se⌠ origin
  17. ╨  Previous block list
  18. ╤  Quiet mode
  19. ╥  ReaΣ files
  20. ╙  Savσ files
  21. V  View table entry/entries
  22.  :  Symbol table addition
  23. ╗  Comment table addition
  24. =  Relist
  25. -  Relist starting 1 before
  26. +  Relist starting 1 after
  27. ?  Display DASM status
  28.  
  29. :General description
  30.  
  31. Majo≥ feature≤ oµ DASM 1.6
  32.  
  33. 1⌐ Automatiπ recognitioε oµ tex⌠ strings
  34. 2⌐ Automatiπ generatioε oµ symbo∞ table.
  35. 3⌐ Interactivσ creation-deletion-renaminτ oµ labels.
  36. 4⌐ Interactivσ partitioninτ oµ datß anΣ instructioε areas.
  37. 5⌐ Automatiπ generatioε oµ OR╟, EQUs and END of source file.
  38. 6⌐ Simplσ additioε oµ comment≤ wherσ appropriate.
  39. 7) Nested "visits" to other areas of code, with easy return.
  40. 8⌐ "Featureiti≤ rampartisó ...
  41.  
  42. DAS═ i≤ anothe≥ creatioε oµ RicharΣ (ZCPR⌐ Conε baseΣ upoε previou≤ effort≤ b∙ ì
  43. WarΣ Christenseε anΣ Davσ Barker.
  44.  
  45. I⌠ i≤ aε interactivσ disassemble≥ fo≥ 808░ (TDL)¼ Z80¼ 8048¼ or 650▓ machinσ ì
  46. code¼ dependinτ upoε whicΦ disassemble≥ modulσ i≤ used« It≤ purposσ i≤ t∩ ì
  47. generatσ ß sourcσ file« Usuall∙ thσ sourcσ filσ produceΣ b∙ DAS═ caε bσ ì
  48. assembleΣ t∩ reproducσ thσ origina∞ objec⌠ file¼ bu⌠ t∩ producσ ß ì
  49. relocateable¼ wel∞ documenteΣ sourcσ filσ wil∞ requirσ ß bi⌠ morσ effor⌠ froφ ì
  50. you.
  51.  
  52. A≤ ß genera∞ rule¼ thσ wa∙ t∩ usσ DAS═ i≤ t∩ read(R⌐ thσ relevan⌠ sourcσ file¼ ì
  53. finΣ asciΘ strings(A)¼ symbols(B)¼ adΣ comment≤ etc« theε creatσ ß sourcσ filσ ì
  54. (Sfilename.mac).
  55. èDurinτ thσ disassembl∙ process¼ threσ table≤ arσ generated¼ fo≥ contro∞ ì
  56. points¼ comment≤ anΣ symbols« Thesσ ma∙ bσ saveΣ anΣ loadeΣ a≤ threσ separatσ ì
  57. type≤ oµ file¼ witΦ ß filenamσ yo⌡ specify¼ bu⌠ distinguisheΣ b∙ differen⌠ ì
  58. extensions« Thesσ are:
  59.  
  60. 1⌐ Thσ .CT╠ file« Thi≤ contain≤ addresse≤ a⌠ whicΦ thσ objec⌠ codσ change≤ ì
  61.    type, for example when instructions change to datß o≥ table≤.
  62.  
  63. 2⌐ Thσ .DO├ file« Thi≤ contain≤ comment≤ whicΦ yo⌡ enter¼ witΦ thσ addres≤ a⌠ ì
  64.    whicΦ the∙ appear.
  65.  
  66. 3⌐ Thσ .SY═ file« Thi≤ contain≤ ß lis⌠ oµ label≤ anΣ thei≥ correspondinτ ì
  67.    addresses.
  68.  
  69. Iµ ß filenamσ i≤ includeΣ iε thσ commanΣ line¼ DAS═ wil∞ tr∙ t∩ reaΣ iε thσ ì
  70. specified COM file and the above three files.
  71.  
  72. :Command details
  73.  
  74.   notes
  75. á =====
  76.  
  77. Whereve≥ ß he° valuσ i≤ required¼ yo⌡ ma∙ suppl∙ ß symbo∞ precedeΣ b∙ ß ì
  78. period¼ i.e« ".symboló insteaΣ oµ nnnn.
  79.  
  80. An∙ commanΣ ma∙ bσ precedeΣ b∙ thσ "Q"uie⌠ prefi° whicΦ wil∞ sto≡ i⌠ froφ ì
  81. printinτ t∩ thσ screen« Thi≤ featurσ i≤ mainl∙ intendeΣ t∩ speeΣ u≡ thσ ì
  82. operatioε oµ thσ "Aó anΣ "Bó "Sfile.mac" commands.
  83.  
  84. Command║ ┴ ¡ Attemp⌠ t∩ finΣ DB's
  85.  
  86.  Syntax║ [Q▌ ┴ [ssss▌ [,eeee]á(Seσ "Ló commanΣ fo≥ examples)
  87.  
  88. List≤ t∩ thσ screeε froφ sss≤ t∩ eeeσ a≤ fo≥ "L"¼ bu⌠ iµ an∙ string≤ oµ ╕ o≥ ì
  89. morσ printablσ ASCI╔ character≤ arσ encountered¼ theε the∙ arσ markeΣ a≤ datß ì
  90. iε thσ contro∞ tablσ b∙ placinτ ß "Bó entr∙ a⌠ thσ start¼ anΣ aε "Ió entr∙ ì
  91. afte≥ thσ end« Seσ thσ "Có commanΣ fo≥ morσ informatioε oε contro∞ entries.
  92.  
  93. Command║ ┬ ¡ BuilΣ symbo∞ table
  94.  
  95.  Synta° ║ [Q▌ ┬ [ssss▌ [,eeee]
  96.  
  97. List≤ t∩ thσ screeε froφ sss≤ t∩ eeeσ a≤ fo≥ "L"¼ bu⌠ ever∙ ▓ bytσ operanΣ ì
  98. encountereΣ i≤ placeΣ int∩ thσ symbo∞ tablσ a≤ Lxxxx¼ wherσ thσ valuσ oµ thσ ì
  99. operanΣ i≤ xxx° iε hex« Seσ thσ ":ó commanΣ t∩ ente≥ ne≈ label≤ o≥ renamσ ì
  100. curren⌠ ones¼ anΣ thσ "Kó commanΣ t∩ kil∞ label≤ alread∙ iε thσ table.
  101.  
  102. Command║ ├ ¡ Contro∞ tablσ modify/display
  103.  
  104.  Syntax║   Cnnnn,°   Se⌠ modσ t∩ ° unti∞ nex⌠ contro∞ entry.
  105.  
  106. Durinτ thσ listinτ process¼ thσ contro∞ tablσ define≤ wherσ instruction≤ o≥ ì
  107. datß arσ t∩ bσ listed« EacΦ entr∙ iε thσ tablσ define≤ thσ modσ t∩ bσ useΣ ì
  108. unti∞ thσ nex⌠ contro∞ i≤ reached« Ofteε thσ majorit∙ oµ thσ codσ wil∞ bσ iε ì
  109. "I"nstructioε mode¼ anΣ datß area≤ wil∞ bσ markeΣ b∙ ß "Bó entr∙ a⌠ thσ star⌠ ìèaddress¼ anΣ aε "Ió entr∙ a⌠ thσ nex⌠ addres≤ afte≥ thσ end.
  110.  
  111. EacΦ entr∙ cause≤ ß "contro∞ break"¼ meaninτ tha⌠ thσ ne≈ modσ start≤ oε ì
  112. anothe≥ line¼ s∩ b∙ enterinτ multiplσ "Bó entrie≤ yo⌡ caε make
  113.  
  114.      áD┬ 'TYPESAVEDI╥ ER┴ RE╬ '
  115.  
  116. appea≥ as
  117.  
  118.      áD┬ 'TYPE'
  119. á     D┬ 'SAVE'
  120.      áD┬ 'DI╥ '
  121.      áD┬ 'ER┴ '
  122.      áD┬ 'RE╬ '
  123.  
  124. Possiblσ mode≤ are:
  125.  
  126. ┬ ╜ D┬ (show≤ printablσ ASCI╔ betweeε quotes¼ otherwisσ hex)
  127.  
  128. ├ ╜ D├ (show≤ tex⌠ betweeε quote≤ iµ possible¼ las⌠ characte≥ wil∞ havσ hΘ bi⌠ ì
  129.       set¼ otherwisσ works same a≤ DB)
  130.  
  131. ┼ ╜ enΣ oµ disassembly
  132.  
  133. ╚ ╜ D┬ (datß i≤ showε iε hex)
  134.  
  135. I = instructions
  136.  
  137. ╙ ╜ D╙ (u≡ t∩ nex⌠ ct∞ entry)
  138.  
  139. ╫ ╜ D╫ (attempt≤ label)
  140.  
  141. Seσ thσ "V"ie≈ anΣ "K"il∞ command≤ fo≥ viewinτ anΣ deletinτ contro∞ tablσ ì
  142. entries.
  143.  
  144.  
  145. Command║ ─ ¡ Dum≡ memory, both hex & ascii
  146.  
  147.  Syntax║ ─ [=nε [,]▌ [ssss▌ [,eeee]
  148.          Dsss≤  Dump≤ 80╚ froφ sss≤ on.
  149.          Dssss,eeeσ  Dump≤ froφ sss≤ througΦ t∩ eeee.
  150.          D,eeeσ   Dump≤ froφ curren⌠ locatioε througΦ t∩ eeee.
  151.          ─    Dump≤ 80╚ froφ curren⌠ location.
  152.          D=nε   Se⌠ defaul⌠ dum≡ sizσ t∩ nn
  153.          D=nn,ssss  Set default size to nn then dump from ssss.
  154.  
  155. ┴ dum≡ sizσ oµ 15░ (hex⌐ wil∞ fi⌠ neatly ont∩ ß 2┤ linσ screen.
  156.  
  157.  
  158. Command: E - Return to previous disassembly address
  159.  
  160. Thi≤ commanΣ cause≤ ß returε froφ thσ las⌠ 'go'« Seσ ╟ commanΣ fo≥ ful∞ ì
  161. descriptioε oµ go process« 
  162.  
  163. èCommand║ ╞ ¡ FinΣ address
  164.  
  165. áSyntax║ F[nnnn][,ssss]
  166.  
  167. FinΣ an∙ referencσ t∩ addres≤ nnnn¼ ie« L─ A,(nnnn⌐ o≥ CAL╠ nnnn« Thσ addres≤ ì
  168. t∩ star⌠ searchinτ froφ caε optionall∙ bσ specified« Iµ thσ finΣ i≤ t∩ bσ ì
  169. repeated¼ thσ nnnε i≤ no⌠ necessary.
  170.  
  171. Command║ G ¡ Go to another address for disassembly
  172.  
  173.  Syntax║ [Q▌ G [ssss▌ [,eeee]á(Seσ "Ló commanΣ fo≥ syntax examples)
  174.  
  175. Thi≤ commanΣ work≤ jus⌠ likσ ╠ excep⌠ tha⌠ ß pointe≥ i≤ kep⌠ t∩ thσ addres≤ oµ 
  176. the area from which it is invoked. When you are finished at the new spot, the
  177. ╒ commanΣ return≤ t∩ thσ olΣ spot« U≡ t∩ 1░ level≤ oµ visit≤ arσ retained« An∙ 
  178. more, and you lose the highest one each time.
  179.  
  180. Command: H - Help messages display
  181.  
  182. Command║ ╦ ¡ Kil∞ table entries
  183.  
  184. áSyntax║ K:[nnnn][,eeee]   symbols kill
  185.          K;[nnnn][,eeee]   comments kill
  186.          KC[nnnn][,eeee]   controls kill
  187.  
  188. Iµ n∩ value≤ arσ giveε afte≥ thσ ║ etc¼ theε thσ wholσ tablσ i≤ killed« A≤ ì
  189. thi≤ caε bσ nasty¼ yo⌡ arσ prompteΣ t∩ confirm« Iµ onσ valuσ i≤ supplied¼ thσ ì
  190. entr∙ a⌠ tha⌠ addres≤ i≤ deleteΣ froφ thσ table« Iµ ß seconΣ valuσ i≤ supplied,ì
  191. al∞ entries iε thσ rangσ nnnn to eeee arσ deleted« Usefu∞ fo≥ gettinτ riΣ oµ ì
  192. rubbisΦ.
  193. á 
  194. Command║ ╠ ¡ List
  195.  
  196. áSyntax║ L[=nn][ssss][,eeee]
  197.  
  198.         á∞ Lis⌠ nex⌠ 20 lines
  199. á        lsss≤  Lis⌠ 20 line≤ froφ ssss
  200.         ál,eeeσ   Lis⌠ froφ curren⌠ pπ t∩ eeee
  201.         álssss,eeeσ  Lis⌠ froφ sss≤ t∩ eeee
  202.          l=nε   Changσ defaul⌠ numbe≥ oµ line≤ printeΣ t∩ nε (nε i≤ iε he° anΣ ì
  203.                 i≤ nominall∙ 14Φ o≥ 20dec)
  204.  
  205. Thi≤ commanΣ wil∞ no⌠ lis⌠ pas⌠ ß contro∞ 'eº entry
  206.  
  207.  
  208. Command║ ╧ ¡ Se⌠ Origin
  209.  
  210. áSyntax║ O[nnnn]
  211.  
  212. ╧ show≤ curren⌠ origiε value« Defaul⌠ i≤ 100H« Onnnε set≤ thσ basσ addres≤ oµ ì
  213. thσ filσ beinτ disassembleΣ i≤ se⌠ t∩ nnnn« AssociateΣ pointer≤ arσ altereΣ t∩ ì
  214. suit« DAS═ store≤ thi≤ addres≤ witΦ thσ .SY═ file¼ s∩ oncσ altereΣ anΣ saved¼ ì
  215. there is no need for further action.
  216.  
  217. Command: P - List previous block of codeè
  218.  Syntax  P
  219.  
  220. Thi≤ i≤ useΣ wheε yo⌡ wisΦ t∩ lis⌠ thσ codσ prio≥ t∩ thσ curren⌠ block¼ thu≤ ì
  221. savinτ yo⌡ thσ troublσ oµ enterinτ Lnnnε wherσ nnnε i≤ somewherσ ofµ thσ to≡ ì
  222. oµ thσ screen« Thσ listeΣ blocδ isn'⌠ alway≤ perfectl∙ adjacen⌠ t∩ thσ curren⌠ ì
  223. block¼ becausσ thσ disassemble≥ can'⌠ worδ backwards¼ anΣ ha≤ t∩ makσ aε ì
  224. intelligen⌠ gues≤ wherσ i⌠ shoulΣ star⌠ from.
  225.  
  226. Command║ ╤ ¡ Quie⌠ mode
  227.  
  228. áSyntax║ Qcommand
  229.  
  230. Placinτ 'Qº beforσ an∙ othe≥ commanΣ wil∞ disablσ al∞ screeε outpu⌠ fo≥ thσ ì
  231. duratioε oµ tha⌠ command« Thσ maiε applicatioε oµ thi≤ featurσ i≤ t∩ speeΣ u≡ ì
  232. thσ 'Aº anΣ 'Bº commands.
  233.  
  234. Command║ ╥ ¡ ReaΣ files
  235.  
  236. áSyntax║ Rfilename.ext
  237.  
  238.         áRfilename.CO═  ReaΣ objec⌠ file
  239.         áRfilename.CT╠  ReaΣ Contro∞ Table
  240.         áRfilename.DO├  ReaΣ Comment≤ Table
  241.         áRfilename.SY═  ReaΣ Symbo∞ Table
  242.         áRfilename.AL╠  ReaΣ COM¼ CTL¼ DOC¼ ª SY═ files
  243.  
  244. Afte≥ ß CO═ filσ i≤ loaded¼ thσ tablσ area≤ arσ automaticall∙ allocateΣ t∩ ì
  245. givσ maximuφ possiblσ table space« LengtΦ oµ table≤ ma∙ bσ altereΣ b∙ patchinτ ì
  246. several 2-byte values near the start of DASM.COM - see DASM.MAC for details.
  247.  
  248.  
  249. Command║ ╙ ¡ Savσ files
  250.  
  251. áSyntax║ S[filename.ext]
  252.  
  253.         áSfilename.CT╠  Savσ Contro∞ Table
  254.         áSfilename.DO├  Savσ Comment≤ Table
  255.         áSfilename.SY═  Savσ Symbo∞ Table
  256.         áSfilename.AL╠  Savσ al∞ abovσ files
  257.          ╙              Savσ al∞ above file≤ usinτ previou≤ filename
  258.  
  259.      [Q] Sfilename.MAC  ┴ filσ FILENAME.MA├ i≤ openeΣ oε thσ defaul⌠ drive« ì
  260. ááááááááááááááááááááááááOR╟ statemen⌠ i≤ generated¼ a≤ arσ equate≤ fo≥ an∙ ì
  261. áááááááááááááááááááááááásymbol≤ outsidσ thσ limit≤ oµ thσ objec⌠ code« Wheε ì
  262. ááááááááááááááááááááááááfinished, an END statment is added.
  263.  
  264.  
  265. Command║   V ¡ View table entries
  266.  
  267. áSyntax║ V:[nnnn][,eeee]   symbols view
  268.          V;[nnnn][,eeee]   comments view
  269.          VC[nnnn][,eeee]   controls view
  270.  
  271. Iµ n∩ value≤ arσ giveε afte≥ thσ ║ etc¼ theε thσ wholσ tablσ i≤ shown« Iµ onσ ìèvaluσ i≤ supplied¼ thσ entr∙ a⌠ tha⌠ addres≤ i≤ shown« Iµ ß seconΣ valuσ i≤ ì
  272. supplied¼ al∞ entrie≤ iε thσ rangσ nnnε t∩ eeeσ arσ shown.
  273.  
  274.  
  275. Command║ ╪ - EXit to warm boot
  276.  
  277. Control/C does the same.
  278.  
  279. Command║ : ¡ Add symbol to table
  280.  
  281. áSyntax║ :nnnn,name
  282.  
  283. Enter≤ symbo∞ "nameó int∩ symbo∞ tablσ fo≥ addres≤ nnnn« Iµ ß labe∞ oµ thσ ì
  284. samσ namσ exist≤ a⌠ anothe≥ addres≤ theε yo⌡ arσ prompteΣ fo≥ whethe≥ t∩ kil∞ ì
  285. that label.  Iµ ß symbo∞ alread∙ exist≤ a⌠ addres≤ nnnn theε it≤ namσ i≤ ì
  286. displayeΣ a≤ "Labe∞ oldnamσ killed"« 
  287.  
  288.  
  289. Command║ ╗ ¡ Add comment to table, toggle symbol comments
  290.  
  291.  Syntax║ ;nnnn,[;][*]comment
  292.  
  293. Iµ thσ firs⌠ characte≥ oµ ß commen⌠ i≤ ";ó theε thσ commen⌠ wil∞ bσ listeΣ ì
  294. afte≥ thσ opcodσ a⌠ thσ correspondinτ address« Iµ thσ firs⌠ characte≥ i≤ "*ó ì
  295. theε thσ subsequen⌠ character≤ arσ listeΣ beforσ thσ opcode¼ whicΦ provide≤ ß ì
  296. methoΣ oµ alterinτ thσ sourcσ code« I⌠ ma∙ hel≡ t∩ enΣ sucΦ ß commen⌠ witΦ ì
  297. "<tab>;ó whicΦ turn≤ thσ actua∞ opcodσ int∩ ß comment« Iµ neithe≥ "*ó o≥ ";ó ì
  298. arσ provided¼ thσ commen⌠ wil∞ bσ showε oε thσ linσ abovσ thσ opcode« An∙ ì
  299. commen⌠ ma∙ includσ ß "\ó whicΦ wil∞ causσ ß ne≈ commen⌠ linσ t∩ bσ started.
  300.  
  301.         ;oε  Turε symbo∞ comment≤ on.
  302.  
  303. Wheε symbo∞ comment≤ arσ on¼ thσ actua∞ objec⌠ filσ addres≤ correspondinτ t∩ ì
  304. eacΦ symbo∞ i≤ showε oε thσ samσ linσ a≤ thσ symbol¼ afte≥ ß ";".
  305.  
  306.         ;oµ  Turε symbo∞ comment≤ off.
  307.  
  308. This is the default situation.
  309.  
  310. Command:   =   Relist current block
  311.  
  312. Provide≤ ß quicδ wa∙ oµ relistinτ thσ curren⌠ blocδ afte≥ changinτ thing≤ ì
  313. therein.
  314.  
  315.  
  316. Command:  -   Relist starting at address 1 byte earlier
  317.  
  318. Provide≤ ß quicδ wa∙ t∩ checδ iµ thσ garbagσ yo⌡ arσ lookinτ a⌠ i≤ garbagσ ì
  319. because somehow you have got out of sync with the object code.
  320.  
  321. Command:  +   Relist starting at address 1 byte later
  322.  
  323. See above remark on "-" command.
  324.