home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / CBMDevKit2.dms / CBMDevKit2.adf / DevTools / DevTools.lha / Devtools / DOCS / printa.doc < prev    next >
Encoding:
Text File  |  1993-05-13  |  2.0 KB  |  71 lines

  1. PRINTA
  2.  
  3. Format:         PRINTA <file> [NOHUNK]
  4.  
  5. Template:    PRINTA "FROM/A,NOHUNK/S"
  6.  
  7. Purpose:     To print the contents of Amiga binary format files.
  8.  
  9. Specification:
  10.  
  11. PRINTA prints Amiga binary object files from an assembler or a linker, such
  12. as ALINK. To understand the meaning of the output of PRINTA, you should read
  13. the chapter "AmigaDOS Binary File Structure," of The AmigaDOS Manual.
  14.  
  15. Entering NOHUNK after your file name causes PRINTA to suppress printing the
  16. actual contents of code and data hunks.
  17.  
  18. Example:
  19.  
  20. 1> PRINTA startup.obj
  21. HUNK.CODE
  22. 23F80004 00000004 23CF0000 00004EB9 00000000 42802E79 00000000
  23. 4E75202F 000460F2
  24. HUNK.RELOC32 HUNK=1 [00000018] [0000000A] [00000004]
  25. HUNK.EXT [1] [_exit...]Val=0000001E
  26. HUNK.EXT [129] [_main...] [00000010]
  27. T.END
  28. HUNK.BSS [00000003]
  29. HUNK.EXT [1] [_errno...] Val=00000008
  30. HUNK.EXT [1] [_SysBase] Val=00000004
  31. T.END
  32.  
  33. Examine this print out in parts:
  34.  
  35. HUNK.CODE
  36. 23F80004 00000004 23CF0000 00004EB9 00000000 42802E79 00000000
  37. 4E75202F 000460F2
  38.  
  39. The file "startup.obj" has a CODE hunk with the data listed in hexadecimal.
  40.  
  41. HUNK.RELOC32 HUNK=1 [00000018] [0000000A] [00000004]
  42.  
  43. The CODE has three values relative to itself (HUNK=1) at offsets 18, A and 4
  44. from the start of the hunk.
  45.  
  46. HUNK.EXT [1] [_exit...]Val=0000001E
  47.  
  48. The CODE has an external reference to itself ([1]) called _exit which is 1E
  49. bytes from the start of the hunk.
  50.  
  51.  
  52. HUNK.EXT [129] [_main...] [00000010]
  53.  
  54. The CODE has an external reference to _main in some other hunk (which must
  55. be linked in later before the code will be loadable).
  56.  
  57. HUNK.BSS [00000003]
  58.  
  59. Following the CODE hunk is a BSS (uninitialized data area) hunk.  The BSS is
  60. 3 long words long (12 bytes).
  61.  
  62. HUNK.EXT [1] [_errno...] Val=00000008
  63. HUNK.EXT [1] [_SysBase] Val=00000004
  64.  
  65. The symbol _errno, which is 8 bytes from the base of the BSS hunk, is
  66. referenced by the CODE (hunk [1]).  The symbol _SysBase, which is 4 bytes
  67. from the base of the BSS hunk, is also referenced by the CODE (hunk [1]).
  68.  
  69. See Also:        ALINK, ABSLOAD
  70.  
  71.