aboutsummaryrefslogtreecommitdiff
path: root/xexamine.rst
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-04-25 16:54:12 -0400
committerB. Watson <urchlay@slackware.uk>2024-04-25 16:54:12 -0400
commit7a7b256c5a288220495aa36fa1bd362629d31f2d (patch)
tree1b6af92051075124eb0170c3a609bbdb40da9684 /xexamine.rst
parent945180a24bf4e2332259d42d06d77c799747cb12 (diff)
downloadbw-atari8-tools-7a7b256c5a288220495aa36fa1bd362629d31f2d.tar.gz
xexamine: add -d (decimal) option.
Diffstat (limited to 'xexamine.rst')
-rw-r--r--xexamine.rst35
1 files changed, 27 insertions, 8 deletions
diff --git a/xexamine.rst b/xexamine.rst
index 60d217e..65c6ed6 100644
--- a/xexamine.rst
+++ b/xexamine.rst
@@ -14,7 +14,7 @@ Show information on Atari 8-bit executables (XEX)
SYNOPSIS
========
-xexamine [ [**-h**] | [ [**-v**] *xexfile* ]
+xexamine [ [**-h**] | [ [**-v**] [**-d**] [**-s** *segment*] *xexfile* ]
DESCRIPTION
===========
@@ -24,16 +24,18 @@ the following information on each segment in the file:
Segment number (1-based).
-Start and end addresses (in hex).
+Offset in bytes from the start of the file (in decimal).
+
+Start and end addresses (in hex by default).
Length in bytes (in decimal).
-CRC32 checksum of the segment.
+CRC32 checksum of the segment (in hex).
Segment type:
If the segment is a run address (loads at RUNAD) or an init address (loads at INITAD), the
- type is "Run" or "Init", with the actual run or init address.
+ type is "Run" or "Init", with the actual run or init address, in hex by default.
Otherwise, the percentage of the segment that contains valid 6502 object
code is printed. This is an estimate based on static analysis and some
@@ -43,18 +45,35 @@ OPTIONS
=======
.. TODO:
-.. -d
-.. Disassemble
+.. -l
+.. List code. Disassemble with da65?
+
+-d
+ Show addresses in decimal.
-s *segment-number*
Only show information on one segment. Segments are numbered starting
at one.
-h
- Print a short help message and exit.
+ Print a short help message and exit.
-v
- Verbose operation.
+ Verbose operation.
+
+NOTES
+=====
+
+Currently, **xexamine** only works with .xex files. If you have a
+cartridge image as a .car file, you can use **xex2cart** to make a
+.xex from it (if it's a non-bankswitched cart, anyway). If you have
+a raw chunk of object code, you can use **blob2xex** to make a .xex file
+from it.
+
+The code-detection could be smarter, and probably will be pretty soon.
+Static analysis will never be 100% perfect, but the heuristics could
+be improved (e.g. by using something like Markov chain or Bayesian
+analysis).
EXIT STATUS
===========