This repository contains an analysis of the 68000 DIVU
and DIVS
instructions at the micro- and nanocode level
as presented in US patents 4325121 and 4296469.
The motivation was to understand the correct timings for the instructions in question.
The repository comprises
- A trimmed down 68000 microcode emulator for the
DIVU
instruction and associated unit tests - A trimmed down 68000 microcode emulator for the
DIVS
instruction and associated unit tests - Notes outlining the basics of 68000 micro- and nanocodes
- Notes outlining the workings of the
DIVU
andDIVS
instructions
This project uses CMake as the build tool and googletest for testing. To build and run the tests:
mkdir my_build_directory
cd my_build_directory
cmake -G <your favourite generator> /path/to/this/repository
cmake --build .
ctest --verbose
The notes in this repository are presented in the suggested reading order
The documents in the docs-third-party
folder are copyright their original authors.
In particular, the searchable document for the US patent appendix is the work of Exodus Megadrive emulator (Nemesis), without which this project would have taken longer.
The documents are included here for preservation purposes only.
68000 Microcode Division is licensed under MIT. Copyright 2023 Richard Brown.