Un émulateur de MZ-800 / MZ-700 / MZ-1500 pour Windows.

Les changements principaux sont:
New Virtual CMT (cassette deck)
The cassette deck was rewritten from scratch. Every tape is now a list of blocks that you can inspect and edit.
– Opens **TMZ and TZX** tapes (including loops, jumps and calls) in addition to MZF, M12, MZT, TAP and WAV; WAV files in IEEE float and WAVE_FORMAT_EXTENSIBLE format are accepted too.
– One window with a compact and a full layout, and three loading modes: **Tape**, **Boost** and **Direct**.
– **Recording goes onto the tape in the deck.** A program saved in the ROM format becomes a program block, anything else is kept as a raw recording that plays back exactly as it was recorded.
– Tape editing: delete, move and import blocks, change block speeds, save as TMZ, TZX, MZT or MZF, export as MZF or WAV.
– **Recording analysis** finds programs inside a raw recording and adds them as blocks – not only the standard Sharp format, but also TURBO (TurboCopy, Intercopy), FASTIPL, CP/M (CMT.COM, TAPE.COM, Intercopy CPM) and BSD data files of BASIC.
– **Echo**: optionally hear the tape signal from the speaker while playing or recording.
– Snapshots and input replays keep the tape, including unsaved changes.
Sound closer to the real machine
The sound output was compared with oscilloscope measurements on a real MZ-800 and corrected in many places.
– **Hardware output filter** (Interface > Audio…): the low-pass filter that sits between the sound chip and the amplifier on a real MZ-800 is now emulated. It is on by default, so the sound is duller, like from the computer’s own speaker.
– The speaker and the PSG output are AC coupled as on the real hardware: a constant level fades back to idle instead of being cut after 45 ms.
– The speaker (CTC0) is now about 8 dB quieter relative to the PSG, matching the measured ratio.
– PSG fixes: noise channel (shift register length, rate and feedback – periodic noise used for bass was almost an octave too high), divider 0 now plays the lowest tone, samples played through the volume register have the right level, counters of muted channels keep running, and the CPU wait on a PSG write matches the real machine in all sixteen phases.
– CTC 8253: modes 4 and 5, BCD counting and several less common cases now behave like the real chip.
How well founded the sound is: the MZ-800 is measured on a real computer, the MZ-1500 is derived from the MZ-800, the MZ-700 is estimated from the schematic.
MZ-700 expansion hardware
– **K&P (Kersten & Partner) 80 column card** with its own second monitor (80 x 25, CRTC SY6845E) – [devices/kp80.md](https://github.com/michalhucik/mz800emu/blob/v2.0.7/docs/en/devices/kp80.md)
– **Sharp Users Club UK 80-column kit** – [devices/suc80.md](https://github.com/michalhucik/mz800emu/blob/v2.0.7/docs/en/devices/suc80.md)
– **PCG-700** programmable character generator (HAL Laboratory) – [devices/pcg700.md](https://github.com/michalhucik/mz800emu/blob/v2.0.7/docs/en/devices/pcg700.md)
– The expansion devices share the Z80 data bus as on the real machine, and the new **Bus Map** debugger window shows who owns which port and memory-mapped address (on all three machines).
Input recording and playback (Replay)
Replay > Record Inputs… records the keyboard, joysticks, resets, tape control and debugger writes from a start snapshot, together with state hashes. Replay > Play Replay… repeats the run exactly, with rewind and seek. The contents of the mounted disks and the tape are stored inside the replay. See [replay.md](https://github.com/michalhucik/mz800emu/blob/v2.0.7/docs/en/replay.md).
New debugger tools
– **Memory Search** (Alt+Shift+E): find where a program keeps a value (lives, score, a timer) by narrowing candidates step by step, with Undo / Redo and Freeze Bytes.
– **RAM Write Log**: who wrote this byte? Records the writing instruction, old and new value and the source of every write.
– **Code coverage**: which instructions ran and which way each conditional instruction went, shown in the Disassembly windows and exportable as JSON, CSV or lcov (`docs/tools/coverage_to_lcov.py`).
– **Instruction history** keeps the CPU registers before each of the last 32 instructions; CPU Track can record registers after every instruction.
– New breakpoint actions `stop`, `exit`, `ramlog_start` / `ramlog_stop` / `ramlog_clear`, the function `lastwriter(addr)` and the identifiers `InsnPC` and `FrameCycle`.
Display, capture and command line
– **CRT scanlines** (Display > CRT Scanlines) with adjustable intensity.
– **Screenshot Control** (Alt+G) and **Audio Capture Control** (Alt+Shift+Q) windows.
– `–fdd =` and `–fdd0` to `–fdd7` insert DSK images at startup; `–fdd-readonly ` write-protects a drive for the run.
– Choice of the device code a directly started MZF program gets (CMT, FD, QD, RD or custom), so programs such as BASIC 1Z-016 pick the right default device.
– Joystick Setup has an **Apply** button.
Unattended runs for CI
`–headless` runs can end by themselves and return an exit code: `–exit-after-frames`, `–timeout-frames` / `–timeout-seconds`, `–exit-on-pc`, `–fail-on-pc`, `–exit-on-write`, `–exit-on-out`, or a breakpoint with the `exit` action. `–result-json` writes the result with registers and SHA-256 hashes of memory and screen; `–replay-verify` checks a replay at MAX SPEED. The headless mode no longer keeps a CPU core busy.
MCP server
A large update for automation and AI agents:
– Full control of the Virtual CMT, input replay, memory search, RAM write log, code coverage and audio capture.
– `emu_state_observe` reads registers, flags and memory windows from one moment, also while the emulator runs.
– `emu_machine_hash` and `state_rev` answer « did the machine state change? » without transferring data; reads return SHA-256, writes can be conditional (`expected_sha256`).
– Run control with run numbers, stop history, `emu_resume`, `emu_wait_stop` and deadlines in emulated time.
– `emu_trace_read` reads Trace Suite records and the breakpoint log page by page, without parsing files.
– `emu_replay_goto` jumps to the machine state at any moment of a playing replay.
– `emu_periph_attach` / `emu_periph_detach` and `emu_media_insert` for Quick Disk now actually work.
Emulation accuracy fixes
– **Z80**: interrupt acceptance timing at the end of an instruction (verified with a logic analyzer), stray DD / FD prefixes, MEMPTR and flags of repeating block instructions, write order of PUSH / CALL / RST.
– **GDG MZ-800**: VRAM wait states now follow a simulation of the GDG circuit; hardware scroll applies only to the displayed frame; mid-line scroll changes; palette and memory map after reset.
– **Joystick MZ-800**: strobe taken from the correct 8255 bits (PA4 / PA5), so programs strobing the joysticks separately now read them.
– **FDC**: formatting with 128 B and 1024 B sectors stores the track correctly in the DSK image.
– **Snapshots** save and restore more hidden state (Z80 MEMPTR and pending interrupts, CTC0, hardware scroll, FDC end-of-track state) and load safely with a different RAM disk or IDE8 configuration.
– **MZ-1P16 plotter**: self-test, reset and attach no longer stall the emulation and the sound.
– Many debugger fixes: debugger reads and writes no longer trigger memory breakpoints or disturb the emulation, range and mask breakpoints set over MCP, Sharp MZ ASCII conversion in Watch and Memory Browser.
Changes you should know about when upgrading
– **Sound is different by default.** If you prefer the previous, brighter sound, turn off Hardware output filter in Interface > Audio….
– **Virtual CMT replaces the old CMT window**, the Tape Filelist window and the « CMT Hack is activated! » window. The saved window position is not taken over, Escape does not close the window (Alt+C does), and the Record button records onto the tape instead of asking for a WAV file. TAP tapes have the signal level inverted compared with earlier versions.
– **Files given by a relative path now live in the configuration directory** (the program directory by default, otherwise `–cfg-dir`) instead of the directory the emulator was started from: RAM disk backup files (MZ-1R18, PEZIK), the Unicard SD card root and the MemExt FLASH file. If you start the emulator from another directory, move your existing files next to the program.
– **MZ-800 ROM selection in the INI file** (`[ROM] rom_type`) is now saved and read under the ROM’s own name. A configuration file written by the previous version is still read the old way, so your selected ROM stays; a ROM name written into the INI by hand may need a check.
– **Host keyboard and keypad joystick** reach the machine at the frame boundary, so a key press shows up at most one frame later.
– **MCP**: `emu_input_send_key` / `emu_input_send_keys` hold a key for 6 frames by default (previously 3); `emu_settings_set` no longer accepts `QDISK/filename` and `QDISK/write_protected` (use `emu_media_insert(slot= »qd »)`); Watch and `emu_watch_eval` ignore the `!` side-effect suffix.
Télécharger Mz800emu v2.0.7 (46.4 Mo)
Site Officiel
En savoir plus…