Have done some updates:
--unique
To create a "small" startup trace, do this:
Code: Select all
$ xroar -trace | python filter_xroar_trace.py --unique | tee startup_trace.txt
"unique" will only collect a address one time. So "startup_trace.txt" is very small.
It skips all trace lines, if the addresses was called in the past.
--start-stop
You will see traces only if $1234 was called and until $5678 is called, then e.g.:
Code: Select all
$ xroar -trace | python filter_xroar_trace.py --start-stop=1234-5678 | tee routine_trace.txt
Note: You will not only see trace lines if address is between 1234 and 5678!
You can also do this:
--start-stop=9876-1234 So, it starts if $9876 is called and stops if $1234 is called.
This is really helpfull, for my "Assembler Text BASIC scripts" like:
testCC_SUBA.bas (see:
https://github.com/jedie/PyDragon32/tre ... _Registers )
You know the entry point for the machine code e.g.: $4000 and you see the end code (in this case $4050).
If you will only see the machine test code, do this:
Code: Select all
$ xroar -trace | python filter_xroar_trace.py --start-stop=4000-4050 | tee suba_trace.txt
filter_xroar_trace.py is here:
https://github.com/jedie/PyDragon32/tree/master/misc
Quick Download:
https://raw.githubusercontent.com/jedie ... r_trace.py
or:
Code: Select all
wget https://raw.githubusercontent.com/jedie/PyDragon32/master/misc/filter_xroar_trace.py