Skip to content

emoon/m68k_cpu_tester_api

Repository files navigation

m68k_cpu_tester_api

Build Status

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:

Dependencies

  1. To compile the code you need Bazel 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 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

About

Uses data from the (Win)UAE cpu test generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published