# Adoption by megadrive-python What the board has to change to use this core in place of the withdrawn one. The board's own source was not read for this (build-status.md, "Not read"); the list comes from what the board was recorded as calling ([api.md](api.md)'s first version, written from `board.py`, `machine.py` and `audio.py`) and from the handoff of 2026-11-13. Check each item against the board when the work is done. ## The calls | The board used | Now | |---|---| | `YM2612(variant)` with `YM2612_DISCRETE` or `YM3438_ASIC` | the same names | | `fm.write(port, value)` | the same | | `fm.read(port)` | the same; `None` where the part leaves the bus undriven (T3) | | `fm.run(...)` from the master clock | `fm.run(clocks)` in clocks of the chip's pin: the master clock divided by 7 | | `fm.take_samples()` | the same; integer frames in converter steps, -1,554 to +1,554 | | `fm.reset_line(level)` | the same | | `fm.enabled` | the same | | `IC_SLOT_LAG`, `IC_WRITE_SLOT_LAG`, `TIMER_CONTROL_DELAY_CYCLES`, `fm.mclk`, `fm.control_delay`, `fm.busy_on_all_ports` | **gone**: they belonged to the withdrawn core's clock-level timing. The board drops them; status addresses are now the variant's `status_ports` | ## What the board must rewrite - **Its level and mix constants.** The output is now integer converter steps with the ladder applied on the discrete chip. The FM-to-PSG balance has to be set again and recorded as the board's choice (spec 15; community test `test_psg_balance_is_the_boards_business`). - **Its validation documents.** megadrive-python's documents claim sample-for-sample equality with two die models in many places. Those claims cannot be re-earned from allowed sources (spec 21). They must be rewritten to what this core measures: the claims in [claims.md](claims.md), and the open differences in [validation.md](validation.md), rung 6. - **Any test that depended on clock-level timing** inside a sample (write latency, BUSY's first clock, $2A sampling). This core takes writes at sample boundaries (T9). - **The pins.** The board's `pyproject.toml` pins the archived core; repin to this repository once it has a remote (not yet: the owner decides). ## Not settled, and the board's to watch - Programs that write faster than Yamaha allows will be heard up to a sample differently from the chip (U1). - Model 1's ladder constants are placeholders until a measurement exists (rung 7, the owner's Genesis). - The board's own use of Nuked-MD has not been audited (handoff, 2026-11-13).