dis6502.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. .. RST source for dis6502(1) man page. Convert with:
  2. .. rst2man.py dis6502.rst > dis6502.1
  3. .. rst2man.py comes from the SBo development/docutils package.
  4. .. |version| replace:: 0.12
  5. .. |date| date::
  6. =======
  7. dis6502
  8. =======
  9. ----------------------------
  10. Disassemble 6502 object code
  11. ----------------------------
  12. :Manual section: 1
  13. :Manual group: SlackBuilds.org
  14. :Date: |date|
  15. :Version: |version|
  16. SYNOPSIS
  17. ========
  18. dis6502 [*-b* | *-l* | *-c* | *-r <address>*] [*-a*] [*-p <pfile>*] [*-v <address>*] [*-7*] *file*
  19. DESCRIPTION
  20. ===========
  21. Dis6502 disassembles 6502 binary files. Binary formats understood include
  22. Atari binary files (L menu command) and boot files. Equate and control
  23. files can be included via the option to name well known locations and to
  24. control the disassembly process. The output includes a cross reference.
  25. The disassembly process is a two pass operation: First the program flow
  26. is traced starting with the init and run parameters in the file headers.
  27. The dump routine then prints out the information.
  28. OPTIONS
  29. =======
  30. **-r** *<address*>
  31. *file* is raw binary, located at *<address>*.
  32. **-b**
  33. *file* is an Atari boot image (disk or cassette). Note that neither .ATR
  34. nor .CAS images are supported: the file must be a raw image with no header
  35. information. For disks, this is called an XFD file.
  36. **-l**
  37. *file* is an Atari load file (aka XEX).
  38. **-c**
  39. *file* is a Commodore 64 executable.
  40. **-a**
  41. Generate assembly output. Suppresses the addresses and object
  42. code normally printed on each line of output, and omits the
  43. cross-reference section from the end of the output.
  44. **-p** *<pfile>*
  45. Use predefinition file. See **FILE FORMAT** for the predef file format.
  46. Up to 10 **-p** options may be included.
  47. **-v** *<address>*
  48. Alternate vector address (normally **$FFFA**). This option only has
  49. any effect with raw binaries (**-r** option).
  50. **-7**
  51. Mask character data to 7-bit.
  52. FILES
  53. =====
  54. **/usr/share/dis6502/atari8.predef**
  55. **/usr/share/dis6502/c64.predef**
  56. Predefinition files for Atari 8-bit and Commodore 64, containing the usual
  57. system equates.
  58. FILE FORMAT
  59. ===========
  60. Lines in a predefinition file consist of:
  61. **label** .eq *address*
  62. **label** .equ *address*
  63. Defines a label. The **.eq** and **.equ** forms are equivalent.
  64. **.jtab2** *lowaddr,hiaddr,count*
  65. Defines a table of *count* pointers, split into low and
  66. high byte tables. In assembly code, such a table might look like::
  67. ; func1, func2, func3 are addresses.
  68. table_lo: .byte <func1, <func2, <func3
  69. table_hi: .byte >func1, >func2, >func3
  70. To disassemble these, assuming the address of *table_lo* is **$1000**,
  71. use::
  72. .jtab2 $1000,$1003,3
  73. **.rtstab** *lowaddr*\,*hiaddr*\,*count*
  74. Like **.jtab2**, but each entry contains the target address minus one, for use with RTS.
  75. **.trace** *address*
  76. Causes the trace process to continue at *address*.
  77. **.stop** *address*
  78. Causes the trace process to stop at *address*.
  79. COPYRIGHT
  80. =========
  81. dis6502 is distributed under the terms of the Free Software Foundation's
  82. General Public License, Version 2. See the file
  83. /usr/doc/dis6502-|version|/COPYING for license information.
  84. AUTHORS
  85. =======
  86. dis6502 was written by Robert Bond, Udi Finkelstein, and Eric Smith.
  87. This man page written for the SlackBuilds.org project
  88. by B. Watson, and is licensed under the WTFPL.
  89. SEE ALSO
  90. ========
  91. dis(1), da65(1)
  92. The dis6502 homepage: http://www.brouhaha.com/~eric/software/dis6502/