v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
v6502 Documentation

Components

The v6502 infrastructure currently consists of a few major tools, and their API subsections. (L) indicates that a module is a member of its library target.

Building

The entire project is separated into libraries for each of the Components. You can build each target in its directory, or build its library with make lib. Everything uses portable Makefiles, if you want to just build and test the entire project, simply run make in the top level directory.

Testing

Currently, running make in the top level directory will automatically make all subdirectory targets with the final one being the tests directory. Inside the tests directory are actual test runs of the assembler, disassembler, interactive reference VM, and a compiled set of C-based unit tests.

v6502 has been successfully built and tested without modification on the following platforms:

There is also an analyze target which will run the clang static analyzer against any library or binary target. This is also makeable from the top level.

License

The entire v6502 infrastructure is distributed under the MIT license. The exact license is as follows:

Copyright (c) 2013 Daniel Loffgren

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

Notice

There are few foreign sources included in the tests directory. I do not attempt to claim them as my own.