https://github.com/emoon/m68k_cpu_tester_api
Uses data from the (Win)UAE cpu test generator
https://github.com/emoon/m68k_cpu_tester_api
Last synced: 4 months ago
JSON representation
Uses data from the (Win)UAE cpu test generator
- Host: GitHub
- URL: https://github.com/emoon/m68k_cpu_tester_api
- Owner: emoon
- License: mit
- Created: 2019-10-28T18:25:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-22T08:35:37.000Z (about 6 years ago)
- Last Synced: 2025-10-06T13:37:13.317Z (8 months ago)
- Language: C
- Size: 1.48 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# m68k_cpu_tester_api
[](https://github.com/emoon/m68k_cpu_tester_api/actions?workflow=CI)
This repo makes an API around the cpu tester from WinUAE that can be found [here](https://github.com/tonioni/WinUAE/tree/master/cputest) 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:
## Dependencies
1. To compile the code you need [Bazel](https://bazel.build) but the rules are simple so moving the code to any other build system should be straightforward.
2. On Windows you need to follow the the steps to install the [MSYS2](https://docs.bazel.build/versions/master/install-windows.html) package as it's needed by the code-generation.
## Testing the Musashi example
1. Build the cputester that will generate the tests: `bazel build //gencpu:cputester`
2. Run `bazel-bin/gencpu/cputester` This will generate the tests in the `data` directory.
3. Build the Musashi example using this command: `bazel build //musashi_example:musashi_example`
4. Run `bazel-bin/musashi_example/musashi_example`
## Known issues
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
```