Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.33 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.33 KB

6502-ml

6502 chip family simulator in OCaml. Created for use in a NES emulator in OCaml.

CI

Documentation containing simple examples and reference is available online.

Usage

Assuming you have opam installed with an existing switch, either:

  • add a pin to this repo:

    opam pin add nes-ml https://github.com/Firobe/6502-ml.git

  • or clone and run

    opam install .

Furthermore, you can run the tests with dune runtest. To use the library in other programs, see the online documentation.

Its zero page starts at address 0x0000.

Development status

The CPU passes all functional tests of Klaus Dormann's test suite (klaus.bin is an assembly of 6502_functional_test.a65) and the Nestest ROM as compared to Nintendulator.

Cycles count is accurate even for supported unofficial instructions, and tested.

References

Great ressources used: