This repo makes an API around the cpu tester from WinUAE that can be found here with more info. The cputester in WinUAE is mainly built to run as an executable on Amiga but what this does is wraps the tester and allows it to be used for other use-cases such as emulators or test-beds for FPGA implementations.
Usage:
- To compile the code you need Bazel but the rules are simple so moving the code to any other build system should be straightforward.
- On Windows you need to follow the the steps to install the MSYS2 package as it's needed by the code-generation.
- Build the cputester that will generate the tests:
bazel build //gencpu:cputester
- Run
bazel-bin/gencpu/cputester
This will generate the tests in thedata
directory. - Build the Musashi example using this command:
bazel build //musashi_example:musashi_example
- Run
bazel-bin/musashi_example/musashi_example
Currently the test will break when trying to execute the JMP
instruction,
data/68000/JMP/0000.dat. 0...
restore_rel CT_ABSOLUTE_LONG outside of test memory! 7fff8036
Last test: 168
4ef1 6fb7