VOGONS


First post, by GloriousCow

User metadata
Rank Member
Rank
Member

I'm happy to announce a new JSON test suite for the NEC V20 CPU:
https://github.com/SingleStepTests/v20/

Similar to my test suite for the 8088 (https://github.com/SingleStepTests/8088/), this test suite comprises nearly 3 million instruction executions spanning 82 million cycles.
This test set introduces a new technique by which instructions can execute from a full prefetch queue, further improving the value of this test suite for validating cycle-accurate V20 emulators.

Since the V20 added real-mode instructions introduced in the 80186 and 80286, this test set is also useful for validating emulation of those CPUs as well.

I've included some Python utilities for visualizing and data-mining the test set.

Currently, only the base (non-extended) opcodes are included, including the V20's REPC and REPNC string prefixes and FPO2 instructions.
The extended V20-specific opcodes (starting with 0F) will be added soon, but require modification of my test generator.

Eventually I would like to add a test suite for the V20's 8080 emulation mode as well.

EDIT: Tests have been added for the 0F extended opcodes. All native-mode instructions are now included except BRKEM.

MartyPC: A cycle-accurate IBM PC/XT emulator | https://github.com/dbalsom/martypc