# Third-party notices 65816-python is MIT licensed (LICENSE). The core (`src/w65c816`) contains no third-party code: it is written from WDC's W65C816S datasheet and documentation of facts (Bruce Clark's *Decimal Mode* for decimal ADC/SBC), and judged by SingleStepTests, run in place. GPL emulators and tools (bsnes, Mesen2, srg320's P65C816 VHDL, MAME's GPL files) are closed boxes; see `docs/provenance.md`. Nothing third-party is committed: the corpus, the test ROMs, the documents and the MAME traces are fetched into the git-ignored `reference/` and `tests/mame_traces/`. ## MAME (BSD-3-Clause) `tests/mame_replay.py` (the rung 4 test tool, not the core) carries `burst()`, transcribed from MAME 0.285's `bus_5A22_cycle_burst` in `src/devices/cpu/g65816/g65816.cpp` (`// license:BSD-3-Clause`, `// copyright-holders:Karl Stenerud`; provenance item 13): the master clocks a 5A22 read or write adds by region, which the replay needs to compare its clocks with MAME's. That file's SPDX line is `MIT AND BSD-3-Clause`; its other lines are our own. The licence of that function: ``` Copyright (c) Karl Stenerud (MAME, https://www.mamedev.org) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ```