Traces execution of a 6502 binary using the mos6502 emulator by Gianluca Ghettini.
See https://github.com/gianlucag/mos6502.
Outputs text containing register values prior to each instruction being executed. Useful for hardware engineers verifying 6502 compatible cores.
usage: trace <binfile> [RSTV [SP [S [A [X [Y]]]]]]
binfile: binary file path/name
RSTV: reset vector (4 digit hex)
SP: stack pointer initial value (2 digit hex)
S: status register initial value (2 digit hex)
A: accumulator initial value (2 digit hex)
X: X index register initial value (2 digit hex)
Y: Y index register initial value (2 digit hex)
example (Windows):
trace.exe ..\6502_65C02_functional_tests\bin_files\6502_functional_test.bin 0400 00 34 > trace.txt