
2026-11-18 - Released version 2.0.7

	- Sound - faithful output filter: a real MZ-800 has a first-order low-pass filter between the sound chip and the amplifier (346 Hz corner with the volume at maximum); both the PSG and the speaker pass through it. The emulator now reproduces it with the option Hardware output filter in the window Interface > Audio... (INI [AUDIO] output_filter, MCP emu_settings_set AUDIO/output_filter), on by default: the sound is duller, like from the computer's own speaker. If you prefer the previous, brighter sound with the emulator's original filters, turn the option Hardware output filter off in the window Interface > Audio.... The level of low tones does not change, the option can be switched while running without a click and it also applies to the audio capture and the sound of the video recording. According to oscilloscope measurements on a real MZ-800. How well founded the sound output is: the MZ-800 is measured on a real computer, the MZ-1500 is derived from the MZ-800 and the MZ-700 is estimated from the schematic, without measurements. According to the schematic the MZ-700 has no such filter, so the MZ-700 emulators do not have this option and play with the previous filters. See README.md, section Sound.

	- BUGFIX: Sound - a constant level on the audio output (for example a PSG channel that stopped high, or a volume set with divider 1) now fades out as on a real MZ-800, which has a capacitor in series behind the sound chip: the level returns to idle with a time constant of 0.57 s (calculated from the schematic, oscilloscope measurements agree). The emulator used to hold it for 45 ms and then muted it in a step. When the computer is silent the output reaches zero within a few seconds; tones do not change, they are only symmetric around zero. This applies to the MZ-800 and the MZ-1500 (derived from the MZ-800) in the audio output, the audio capture and the sound of the video recording; according to the schematic the MZ-700 has no such capacitor and stays as it was.

	- BUGFIX: Sound - the speaker (CTC0 counter, bit PC0 and the tape signal) is AC coupled on a real MZ-800: a square wave is symmetric around the idle level and a constant level returns to idle with a time constant of about 0.85 s. The emulator held a constant level for 45 ms and then quickly pulled it to zero, which gave a different waveform for slow changes (samples played with bit PC0, slow pulses). Fixed according to oscilloscope measurements; it applies to the audio output, the audio capture and the sound of the video recording on all emulated computers. On a real MZ-700 the speaker is DC coupled according to the schematic; the emulator lets a constant level fade out there as well, so that steps do not click.

	- BUGFIX: Sound - the level of the speaker (CTC0 counter, beeps and music through the 8253) relative to the PSG: a CTC0 tone was about 3.8 times stronger than a tone of one PSG channel at full volume, on a real MZ-800 it is 1.49 times stronger (3.5 dB). The speaker is now about 8 dB quieter relative to the PSG. For convenience the MZ-700 emulators use the same speaker level (that computer has no PSG to compare with and was not measured), so an MZ-800 in MZ-700 mode and an MZ-700 play equally loud. This applies to the audio output, the audio capture and the sound of the video recording; the volumes set in the INI ([AUDIO] volume_*) still only multiply. Fixed according to measurements on a real MZ-800.

	- BUGFIX: PSG - a tone channel with divider 1 (used to play samples by changing the volume) produced the full swing of the channel; the real chip produces 0.49 of the swing, because the output toggles inaudibly fast and only the mean level is heard. Samples played through the volume register are now 6.2 dB quieter relative to tones, as on a real MZ-800. In the audio capture (events.csv, MCP audio_levels) such a channel has levels 16-30. Fixed according to measurements on a real MZ-800.

	- BUGFIX: PSG - the counters of channels with the volume off (attenuation 15) stood still; on the real chip they keep running. Tones of the same pitch switched on one after another therefore always started in the same phase and added up fully; now their phase follows the moment the program wrote their divider. Fixed according to measurements on a real MZ-800 (the noise channel is assumed to behave the same, it was not measured).

	- BUGFIX: Interrupts - an interrupt request that arrived just before the end of an instruction (less than about 1.5 T-states) was accepted at the end of that instruction; a real Z80 accepts it after the next one. For interrupts from the CTC2 counter the handler therefore started about 3 T-states earlier than on a real MZ-800. Fixed according to measurements with a logic analyzer.

	- BUGFIX: CTC 8253 - in less common cases the counter behaved differently from the real computer: modes 4 and 5 produced no output pulse, BCD counting counted in binary, in mode 0 counting did not resume after a pause by the GATE0 input and the output went high at once, mode 3 with divider 3 oscillated on the output (on the real chip the output falls low and stays there) a latch command between the two bytes of a divider kept the counter from starting, and reading CTC0 after the terminal count in mode 0 kept returning zero instead of the running value. The moment from which a newly written divider and a GATE0 change take effect relative to the counter clock is more precise as well (the difference was at most one clock period). Fixed according to measurements with a logic analyzer on an MZ-800; the common use of the counter (modes 0, 2 and 3) does not change.

	- Virtual CMT - analysis of a recording: files recorded in the formats TURBO (TurboCopy, Intercopy), FASTIPL (Intercopy), CP/M (CMT.COM, TAPE.COM, Intercopy CPM) and BSD (data files of BASIC) can be added to the tape as blocks, not only files in the standard Sharp format. The block is written again by the writer profile the analysis recognized (TC-1.21, IC-10.2-TURBO, IC-10.2-FASTIPL, PEZIK-2.0A, IC-10.2-CPM, BASIC-1Z016) with the recorded speed; it carries the same file, the timing of the original recording is not kept. A raw recording that plays is analysed in the background (Tape > Find files while playing, INI [VIRTUAL_CMT_UI] auto_analyze, on by default): when it has played or the tape is stopped, the message line reports the files that can be added, and Analyze recording... opens with the result at once. MCP: emu_cmt_tape_analyze marks these formats as addable and the rows have the new field profile. See devices/cmt.md.

	- BUGFIX: PSG - CPU wait on a write to the PSG (port F2h, on the MZ-1500 the ports of the second PSG as well): when the nearest point of the PSG's 16 T-state grid was 3 T-states away, the emulator waited 35 T-states instead of 19. It now waits 19 to 34 T-states depending on the phase, matching a measurement on a real MZ-800 in all sixteen phases.

	- BUGFIX: PSG - a tone with divider 0 did not play (the output stayed at a constant level). On the real chip divider 0 behaves as 1024, the lowest tone (about 108 Hz on the MZ-800); the emulator now plays it and the PSG window, the PSG Audio Scope and the audio capture summary show this frequency for it. Divider 1 still holds a constant level.

	- BUGFIX: PSG - noise (channel 3) sounded different from the real computer: the shift register shifted twice as fast, had 16 bits instead of 15 and a different feedback, and a write to the noise register did not restart it. Periodic noise driven by the tone of channel 2 (bass in music) therefore sounded almost an octave higher (tone frequency / 8 instead of / 15), and white noise was higher and had a different sequence. The register now shifts once per 512, 1024 or 2048 CPU T-states, or once per full period of the tone when driven by it, has 15 bits with feedback from bits 0 and 1, and every write to the noise register restarts it; verified by a measurement on a real MZ-800. Music written for the previous behaviour of the emulator will have its noise bass lower. Saved states (snapshots) from older versions load; the noise sequence continues from the state truncated to 15 bits.

	- BUGFIX: FDC - formatting a diskette from the emulated computer with 128 B sectors did not store the track in the DSK image at all, and with 1024 B sectors it stored the track with 768 B sectors, so the image could not be read correctly afterwards. The sector size is now taken from the code in the ID field (128, 256, 512 or 1024 B) and the track is stored correctly; formatting with 256 and 512 B sectors is unchanged. Reading and writing 1024 B sectors is still not supported by the emulator (see devices/fdc.md).

	- BUGFIX: Build - after a plain CMake build (cmake -S . -B build, cmake --build build) the emulator could not be started from the build directory: the binary in build/build-<target>/ did not find the ui_resources directory and ended with a failed assertion or a crash while loading the UI font. The build now makes ui_resources, locale and certs available next to every emulator binary (a symbolic link, on Windows a copy; CMake option MZ_RUNTIME_ASSETS, default ON). When the UI font is missing, the emulator no longer crashes: it prints the directory it searched, points to the --home-dir option and continues with the built-in font.

	- Virtual CMT: Echo - the tape signal can be heard from the speaker while the tape is playing or recording (the Echo checkbox in the menu bar of the Virtual CMT window or the menu HW & Devices > CMT > CMT Options > Echo, INI [CMT] echo, off by default); a direct load and a direct save have no signal. MZF size check: the new option Fix MZF Size Automatically (the same menu, also the checkbox Fix automatically next time in the MZF Size Warning window; INI [CMT] mzfsize_autofix, off by default) truncates a file longer than its header says without asking. The View > Columns menu of the Virtual CMT window has the item Show all. See devices/cmt.md.

	- MCP: emu_input_send_key and emu_input_send_keys hold a key for 6 frames by default (previously 3). The boot menu of the MZ-800 and the MZ-1500 missed a key held for 3 frames at some moments although the program read it (keys_landed 1); held for 6 frames it was taken every time. Typing a text is slower (7 frames per key instead of 4); frames=3 and frame_per_key=3 give the previous behaviour. The joystick and emu_input_send_keys_with_delays are unchanged.

	- BUGFIX: MZ-800 - without development mode the ROM selection in the configuration file ([ROM] rom_type) was written and read under the name of a different ROM (JSS v1.08C as WILLY_EN, JSS v1.06A as WILLY_GE, Willy - English as WILLY_JAP, Willy - German as USER_DEFINED), so a name written by hand selected a different ROM; the selections Willy - Japanese and User Defined ROM were not kept across a restart and the emulator started with the standard ROM. The ROM is now saved and read by its own name and every selection is kept across a restart. A configuration file written by the previous version is read the old way, so the selected ROM stays, and is saved with the correct name on exit (config_version 1.1).

	- BUGFIX: MCP server (mcp_server.py) - when the MCP client ended, the server did not exit and the emulator it had started kept running in the background. It now shuts the emulator down at the end of the connection and exits.

	- BUGFIX: Virtual CMT - recording with the CMT hack on (Use CMT Hack, the Direct mode; also in a fresh configuration): the motor command of the program did not start the recording, so a SAVE recorded nothing. Now, while recording, the program's motor commands start and stop the recording in every loading mode, with the ROM save routines as well as with a program's own save routine (without Record a ROM save in Direct mode goes straight to the tape, see the Virtual CMT entry). Playback with the CMT hack on is unchanged. See devices/cmt.md.

	- BUGFIX: MZ-700 - a program started directly (command line --run-mzf, MCP emu_media_run_mzf) got the size of the program in register BC; it now gets 0000h, as after loading from the tape with the monitor.

	- Direct start of an MZF file: the device code that a program started directly (command line --run-mzf, MCP emu_media_run_mzf) gets in register BC can be chosen, as if it was loaded from that device; some programs, for example the BASIC 1Z-016, choose their default device by it. Menu HW & Devices > CMT > CMT Options > Device for Direct MZF Start: CMT - cassette (default, 0100h, on MZ-700 0000h - as the ROM leaves it after a tape load), FD - floppy disk (0200h), QD - Quick Disk (0300h), RD - SRAM (0000h) and Custom value... (0 to 65535, decimal without leading zeros or hexadecimal such as 0x0200 or 0200h; 0200 is refused, because a device code is easily meant as hexadecimal). Saved in the INI file as [CMT] run_mzf_device (a name or a number). For one start only: the command line option --run-mzf-device <cmt|fd|qd|rd|value> and the parameter device of MCP emu_media_run_mzf (the result has device and bc); MCP emu_settings_get and emu_settings_set read and set CMT/run_mzf_device. result.json of an automated run records the choice and the value in inputs.run_mzf_device and inputs.run_mzf_bc. See devices/cmt.md.

	- BUGFIX: User Defined ROM and the CMT hack - with the CMT hack on, the user defined ROM with Use Default CMT Hack Patch was installed (selected in the ROM menu or confirmed in the User Defined ROM Settings window) with undefined data instead of the ROM file; choosing Disabled CMT Hack Patch with the hack on left the CMT hack on, it could not be switched off while that ROM stayed selected, and the memory held the same undefined data. The ROM file is now always installed (with the patch when the hack is on), and Disabled CMT Hack Patch switches the CMT hack off.

	- Virtual CMT - MCP and command line: the cassette can be controlled through MCP the same way as from the Virtual CMT window - loading, recording, editing, import and export, saving and the tools over the tape. New tools emu_cmt_load_directly, emu_cmt_tape_step, emu_cmt_new_tape, emu_cmt_save, emu_cmt_export_block, emu_cmt_export_tape, emu_cmt_tape_delete_blocks, emu_cmt_tape_move_block, emu_cmt_tape_import, emu_cmt_tape_analyze, emu_cmt_tape_info, emu_cmt_tape_check and emu_cmt_tape_convert_block; emu_cmt_record records onto the tape in the deck (the file path is optional); emulator://periph/cmt and emulator://periph/cmt/tape have new fields for the blocks, the position on the tape, the motor, the last recording and Direct Save (direct_save, direct_save_enabled; emu_settings_set sets CMTHACK/direct_save with the tape stopped). With the CMT hack on, the tools that start the tape return a warning that the program's motor commands do not move it. emu_input_send_keys reports the characters it cannot type. The command line option --cmt also accepts .tmz and .tzx. The changes against version 2.0.6 are in the entry about them. See mcp-server/tools-overview.md and emulator://docs/cmt_workflow.

	- Virtual CMT: a new virtual cassette deck. Every tape is a list of blocks, also a single MZF or WAV file; besides MZF, M12, MZT, TAP and WAV the deck opens TMZ and TZX tapes (played with loops, jumps and calls of blocks) and WAV files in IEEE float and WAVE_FORMAT_EXTENSIBLE format. The new Virtual CMT window has a compact layout (the deck) and a full one (the deck, the block list and the block properties), the loading modes Tape, Boost and Direct, its own shortcuts and a message line; it is translated into all languages of the emulator. Recording goes onto the tape in the deck: a program saved without an error in the ROM format becomes a program block (a SAVE from the ROM gives the same program byte for byte; tried on MZ-800, MZ-700 and MZ-1500), anything else a raw recording that plays back as it was recorded. In Direct mode a save through the ROM routines without Record is stored at once as a new block at the end of the tape, and the ROM verify compares the memory with the block the tape stands at; with Record pressed everything is recorded as signal (menu HW & Devices > CMT > CMT Options > Direct Save, INI [CMTHACK] direct_save, on by default; switched off, a ROM save needs Record). The tape can be edited (deleting, moving and importing blocks, block speeds), saved as TMZ, TZX, MZT or MZF and exported as MZF or WAV. Tools over the tape: the analysis of a raw recording finds the programs in it and adds them as blocks, Tape information edits the information about the tape, Check tape lists its structural problems and Convert to profile rebuilds the signal of a block for another writer. A snapshot and an input replay keep the tape, also with unsaved changes; an input replay plays a recording to tape back the same way, and a return to a checkpoint returns the tape too. See devices/cmt.md.

	- Virtual CMT: changes against version 2.0.6. The new Virtual CMT window replaces the previous window, the Tape Filelist window and the "CMT Hack is activated!" window, and its Loading switch replaces the CMT Hack and CPU Boost checkboxes; it does not take over the window position saved by version 2.0.6, Escape does not close it (Alt+C does), a click on a row of the block list does not move the tape, and it shows the sample rate only for a raw recording and the speed of a block only as a ratio, without Bd. Use CMT Hack in the menu changes only with the tape stopped; with a ROM that does not support direct loading (the Willy ROMs, MZ-NEWMON, a user-defined ROM with Disabled CMT Hack Patch) Use CMT Hack, Direct and Load directly are disabled (previously a click did nothing). The CMT hack takes the program from the inserted tape and then moves to the next program (previously it never used the inserted tape). The Record button no longer asks for a WAV file: it records onto the tape, also in Direct mode. The pause no longer depends on the program's motor: a motor command of the program does not end it, and Pause does not start a tape waiting for the motor (previously both did). Ejecting the tape, opening another tape, a new tape, loading a snapshot, starting the playback of an input replay and closing the emulator first ask before a recording or unsaved changes are lost. A tape file that cannot be opened leaves the inserted tape in place (previously the tape was ejected). A WAV file whose signal level never changes is not opened (previously it opened as a tape without data). A TAP tape has the signal level inverted compared with earlier versions (the timing is the same), and a TAP block with a flag byte other than 00h / FFh is accepted. The CMT Polarity switch also inverts the signal of a WAV recording. Custom pulse lengths are stored in whole microseconds, fractional values are rounded. A snapshot opens the tape file itself (previously the deck state and the position were kept only when the tape was already inserted). New INI keys: [CMT] autorewind (rewinds the tape to its first block at its end, default 0 = off), [CMT] rec_autostop_s (ends a recording after that many seconds without a signal while the motor runs, default 0 = off) and the section [VIRTUAL_CMT_UI] (layout and size of the window). MCP: emu_cmt_hack_set changes the hack only with the tape stopped and not while an input replay is played, and with a ROM without the hack it is an error, also for emu_cmt_load_directly (previously it succeeded with installed false); the block field playable applies to each block separately; container_type is 1 also during recording, and emu_cmt_tape_seek is then an error; emu_cmt_pause(true) followed by emu_cmt_pause(false) no longer starts a tape waiting for the motor; emu_cmt_record with a path accepts only .wav, .tmz, .tzx, .mzt, .mzf and .m12, writes the file only at STOP (ejecting, another tape, a new tape, exiting or loading a snapshot during the recording writes nothing) and the WAV no longer starts with up to 1 s of silence; emu_cmt_open and emu_media_insert keep the inserted tape when the file cannot be opened; emu_input_send_keys types \r as RETURN and reports a text longer than 256 keys in the field truncated (previously both were silently dropped). See devices/cmt.md.
	
	- Message window (Information, Warning, Error): a message that comes while another one is still shown appears after that one is confirmed, an error first; previously it was dropped. The same message several times in a row is shown once with the number of repeats. A message or another dialog (the Virtual CMT questions, MZF Size Warning, FDC and Quick Disk unsaved changes, Unicard, snapshot error) no longer closes a dialog that is open: it waits until that one is closed.

	- BUGFIX: MCP - emu_cmt_tape_seek while playing or paused switched to the chosen block, but the block did not play from its start: while playing it started at the point matching the time elapsed in the previous block, while paused at the point where the previous block was paused, so the start of the block was missing. The block now plays from its start and whole; the deck state (stop, playing, paused) is not changed. The seek is performed the same way when an input recording is replayed.

	- BUGFIX: Virtual CMT - MZF Size Warning window, Save As button: when the entered file name had an extension other than .mzf, .m12 or .mzt (e.g. .bin), the memory holding the file name was freed twice, which could crash the emulator, and the name with the added .mzf extension was not freed; files that already existed while a free name was searched for stayed open. Fixed, the truncated copy is saved as before.

	- BUGFIX: Sharp MZ ASCII character set - the characters ^ (8Bh) and ` (93h) were replaced by a space when converting between ASCII and Sharp MZ ASCII. This affected MZF file names (Virtual CMT window, file chooser, CMT hack), file names on Quick Disk and Unicard, and the Sharp MZ ASCII encoding in the Memory Browser. They are now converted correctly (sharpmz_ascii library 2.2.0).

	- BUGFIX: Debugger - the mzascii format in Watch and the Sharp MZ ASCII / UTF-8 (EU, JP) encodings in the Memory Browser used a wrong conversion table (e.g. bytes 48h 49h were shown as XY instead of HI). They now convert according to the Sharp MZ ASCII character set (sharpmz_ascii library 2.2.0); KOI8-CS is unchanged.

	- BUGFIX: Virtual CMT - the generated signal of a tape block was not freed when switching blocks or ejecting the tape (a memory leak for every MZF, MZT, TAP and WAV block); fixed.

	- Display: CRT scanlines emulation (menu Display -> CRT Scanlines). Darkens the gap between raster lines in the main window like a CRT screen, with adjustable intensity 10-100 % (default 50 %). Display only - the emulator framebuffer, screenshots and video recordings stay unchanged. Off by default, stored in INI [DISPLAY] scanlines and scanlines_intensity.

	- BUGFIX: Debugger - an execution (PC) breakpoint with an address range (RANGE) or mask (MASK) set through MCP emu_bp_create_with_init or emu_bp_update did not stop: with a range at most on the start address, with a mask not at all. The same happened after disabling and enabling such a breakpoint. It now stops on the whole range or mask right after it is set.

	- BUGFIX: MCP - emu_run with a frame count answered late: after a breakpoint or a pause stopped it in the middle of a frame only after about 50 ms, and even without a stop emu_run(frames=1) took about 50 ms (70 ms in the GUI) instead of 20 ms. It now answers as soon as the emulator stops, and the stop is already in emu_get_stop_history.

	- Debugger - Bus Map window: the state of an owner in the list is shown by an icon that differs by shape (filled circle = present or connected, empty circle = not present, crossed circle = not connected; the (?) in the column header explains it), so with the default font the window fits the width of a Full HD screen. In a low window the grid cells shrink down to the size where the abbreviation is still readable, the detail of the selected address can be collapsed with the arrow in its title (the state is saved in the INI file, [BUS_MAP_PANEL] detail_open) and the right part gets a scrollbar so the detail buttons can always be reached. On the MMIO tab the range column is called Addresses.

	- BUGFIX: Debugger - the expression port[N] without an exclamation mark (breakpoint condition, Watch, MCP emu_watch_eval) returned an MZ-800 chip value on the MZ-700 and MZ-1500 for ports these machines do not read: the GDG status on 0CEh, the 8255 and 8253 registers on 0D0h-0D2h and 0D4h-0D6h (on the MZ-700 and MZ-1500 they are only at 0E000h-0E007h), the joystick on 0F0h-0F1h, and on the MZ-700 also the Z80 PIO on 0FCh-0FFh. It now returns what the CPU would read: the last byte on the data bus.

	- BUGFIX: MCP - emulator://video/text_dump returned the CG-RAM (0C000h) instead of the character and attribute VRAM at 0D000h and 0D800h on the MZ-800 in MZ-700 mode. It now returns what the CPU sees at these addresses (MZ-700 and MZ-1500 were already correct).

	- BUGFIX: MCP - emu_get_platform_info and emulator://platform/info reported the MZ-800 mode inverted (mode native in MZ-700 mode and compat700 in MZ-800 mode); bit 3 of the DMD register = 1 means MZ-700 mode.

	- MZ-700: the expansion devices share the Z80 data bus as on the real machine. Every card declares how it drives the bus (write only, tri-state driver, some bits), a write to a port or a memory-mapped address reaches every device that decodes it, and a read is composed from the answers of all drivers. Bits nobody drives return the undriven-bus model: by default the last byte read from memory (the previous behaviour), optionally a constant (INI section [DEVBUS], keys bus_idle and bus_idle_value) - not measured on real hardware. Two drivers on the same bits are a conflict: the default policy does not connect the second device (conflict = refuse), the policies and and first are models for experiments and report every conflicting read (Event Viewer, iorqlog, MCP event bus_conflict). The PCG-700 and the SUC kit never drive the bus, the K&P 80 card drives it tri-state (a read of R31 returns the undriven bus).

	- Debugger: new window Bus Map (HW & Devices menu, MZ-700, MZ-800 and MZ-1500) - who owns which port 00h-0FFh and memory-mapped address 0E000h-0E0FFh (board chips and peripherals, on the MZ-700 also expansion devices), direction, output stage with its source (a datasheet, a schematic, or that the evidence is missing; the MZ-800 joystick drives bits 0-5 only, the GDG status driver is undocumented), chips that do not decode in the current mode (the 8255 and 8253 on the MZ-800 ports only in MZ-800 mode, the memory-mapped addresses only in MZ-700 mode), ports with different owners for reads and writes (0F0h on the MZ-800: palette / joystick), disconnected and potentially conflicting devices, reads without side effects, last accesses, ghost accesses and activity (tracking shared with the I/O Ports window). On the left a 16 x 16 grid with the cell size following the font and badges (conflict, undocumented driver, different owners for IN and OUT, ghost access), on the right the list of owners (a mini cell with the abbreviation in the cell colour as the legend, ranges, driver, state, Connect / Disconnect for expansion devices; hovering a row highlights its cells, selection works both ways) and below it the detail of the selected address (activity, last values, peek, flags in words, jump to I/O Ports, reset activity, IORQ breakpoints); keyboard operation too (arrows, Enter). The port mirror note says that the emulator decodes the low address byte only and that this is not measured on the real machine. MCP tools emu_get_bus_map (the map with flags and activity) and emu_bus_peek (a read without side effects); emu_get_devices reports drive for ports and MMIO; emu_settings_set accepts DEVBUS/conflict, DEVBUS/bus_idle and DEVBUS/bus_idle_value; a replay stores the bus model and a playback with different settings warns. See debugger/bus-map.md and emulator://docs/bus_map.

	- BUGFIX: MCP - emu_io_read and emu_io_write while paused moved the emulation time by the length of the last instruction (every call, e.g. by 4-7 T-states). The command now leaves the emulation time unchanged; a write to the PSG still waits for the PSG clock.

	- BUGFIX: MCP - emu_input_send_keys, emu_input_send_key and emu_input_send_keys_with_delays pressed SHIFT and the key at the same time for a character that needs SHIFT (e.g. *, +, lowercase letters). A program that reads SHIFT at another moment than the key (e.g. K&P Disk BASIC on the MZ-700) then sometimes got the key without SHIFT (* as :). SHIFT is now pressed one frame earlier; the length of the sequence does not change.

	- BUGFIX: MCP - the Python wrapper read wrapper_log_rotate_size_mb and wrapper_log_rotate_keep from the INI as decimal numbers, but the emulator saves them as hexadecimal (0x..). The wrapper log rotation set in the MCP Server window therefore had no effect (always 10 MB and 5 files). The wrapper now reads the numbers like the emulator. The INI examples in the MCP configuration documentation are fixed too.

	- BUGFIX: Debugger and MCP - the regions VRAM 700 char and VRAM 700 attr (MZ-700, MZ-800 in MZ-700 mode, MZ-1500) covered only the first 1 KB of the character and attribute VRAM. They now have the full 2 KB (0D000h-0D7FFh and 0D800h-0DFFFh); Memory Browser, Memory Search and emu_region_read see the upper half too.

	- MZ-700: emulation of the K&P (Kersten & Partner) 80 column card with its own second monitor of 80 x 25 characters in the window K&P 80 Column Monitor (menu HW & Devices / K&P 80 Column Card): CRTC SY6845E on ports 70h - 73h, own video RAM and font, options for the disputed details, phosphor colour (white, green, amber), snapshots, debugger (ports, video RAM, font, CRTC registers) and the MCP tool emu_device_screenshot for the picture of the second monitor. The MZ-700 picture does not change. The emulation of the K&P 80 column card is based only on research of information from the internet (a period article with the schematic, the CRTC datasheet, a description by an owner of the card); the author has never seen or measured the device, disputed details are options, not verified hardware behaviour. See devices/kp80.md.

	- MZ-700: emulation of the Sharp Users Club UK 80-column kit ("MZ-700 80 Column Kit"). Connect it in the HW & Devices menu (SUC 80-column kit), in the INI section [SUC80] or over MCP (emu_periph_attach, kind suc80). A program switches 40 / 80 columns by writing 28h / 50h to 0E00Ch-0E00Fh (bit D4), RESET returns to 40 columns; 80 columns take the characters interleaved from 0D000h and 0D401h. The option Attributes in 80 columns chooses whether every character has its own attribute or a pair of characters shares one. Screenshots and video contain the 80-column picture, the state of the kit is in snapshots. The Sharp Users Club 80-column kit emulation is based solely on research of information found on the internet (a period article with the circuit diagram); the author has never seen or measured the device, and the disputed details are options, not verified hardware behaviour. See devices/suc80.md.

	- MZ-700: emulation of the PCG-700 programmable character generator (HAL Laboratory), menu HW & Devices -> PCG-700 (HAL). Its 2 KB RAM replaces the characters 80h-FFh of both character sets; a program fills it by writing to 0E010h-0E012h. The HSW switch and the SSW and GSW jumpers are options in the menu, and so are the disputed details (when a byte is written relative to bit 4, decoding writes also with DRAM at 0E000h, HSW PCG with SSW OFF, RAM content after power on). Preview of the PCG RAM characters in the Show PCG RAM characters window, PCG RAM in the Memory Browser, registers in the I/O Ports window, state in snapshots. Not connected by default. PCG-700 (HAL) emulation is based solely on research of information found on the internet; the author has never seen or measured the device, and the disputed details are options, not verified hardware behaviour. See devices/pcg700.md.

	- MCP - emu_get_devices lists the MZ-700 expansion units (id, options, MMIO, regions, connection state); emu_periph_attach and emu_periph_detach connect and disconnect them by id (kind: "pcg700"), emu_settings_set changes their options (the response has applies: now or on_connect) and their memory is a region of kind device. On MZ-800 and MZ-1500 the list is empty. See mcp-server/tools-overview.md and emulator://docs/devices.

	- BUGFIX: The I/O Ports debugger window did not save the collapsed state of the QDISK section to the INI file and wrote that state outside the window state (an array for 16 sections, there were 17).

	- BUGFIX: The MZ-800 palette after a reset was 09h/0Fh/09h/0Fh. On the hardware a reset clears the palette (all four entries black). The difference showed with a program that switches to MZ-800 mode itself and does not set the palette.

	- BUGFIX: The debugger described the display mode (the DMD value) wrongly in the Event Viewer, the I/O Ports window and the port catalog, for example DMD 00h as 320x200x2 or 320x200x16 instead of 320x200x4 A, 05h as 640x200x4 instead of 640x200x2 B, 0Ch-0Fh as illegal. All three now use one description of all 16 values, including the undocumented ones (03h, 07h, 09h-0Fh).

	- BUGFIX: After a reset the MZ-800 was in MZ-700 mode and had no VRAM at 8000h-9FFFh. On the hardware, after power on and after RESET the machine is in MZ-800 mode (320x200) and the memory map is the same as after OUT E4h: ROM at 0000h, CG-ROM at 1000h, VRAM at 8000h-9FFFh, ROM at E000h, RAM elsewhere; MZ-700 mode is switched on later by the ROM. This did not change how the ROM runs (it sets the state in its first instructions), but it showed when paused right after a reset (memory map in the debugger and over MCP, reads from 8000h and D000h).

	- BUGFIX: The FDC debugger window showed three tooltips in Czech in the English interface (registers STATUS and COMMAND, the data_counter item). They are now in English and translated in the other languages as before.

	- BUGFIX: Quick Save and Quick Load with an empty snapshot directory in the settings used the current directory of the process and ignored --work-dir. An empty directory now means the work directory (--work-dir, by default the current directory at startup) and a relative directory is taken relative to it.

	- BUGFIX: MCP - last_user_action in emu_get_state and emulator://state did not record a reset from the GUI (F12, menu Reset), a snapshot load (Load, Quick Load) or device changes from the menu and device windows. Now they are recorded with the action name (reset, snapshot_load, snapshot_quickload, the device change name).

	- BUGFIX: MCP - emulator://memory/map and memory_map in emu_state_observe reported, with a memory expansion connected, the expansion RAM for every slot even where ROM, CG-ROM or VRAM was mapped; without an expansion they reported unknown for all slots. Each slot now carries kind by the current banking (the same as the write region check) and source follows from it.

	- BUGFIX: MCP - last_user_action in emu_get_state and emulator://state recorded every command from the GUI including the periodic reads of open debugger windows (registers, memory, disassembler, code coverage, profiler, RAM Write Log), so with the debugger open it changed all the time. Now it records only actions that are not reads (run control, breakpoints, writes, devices).

	- BUGFIX: MCP - emu_settings_set had no effect for volumes and display settings: it changed only the configuration value, which the emulator reads only at startup, and on exit overwrote it with the original value, so it was not saved to the INI file either. Now the value applies immediately and is saved. DISPLAY/custom_fps accepts only the range 50 to 1000, like the menu slider.

	- MCP - emu_settings_get additionally returns live for keys bound to an emulator variable (device connections and types, display settings): the value the emulator is working with right now; value stays the configured value, which changes from the menu reach only when the INI file is saved (for example the Quick Disk drive type after switching). See mcp-server/tools-overview.md.

	- BUGFIX: MCP - emu_periph_attach and emu_periph_detach never worked: they looked for a configuration element active that none of the peripherals has and always ended with an error. Now they attach or detach the peripheral at runtime the same way as the HW & Devices menu (the choice is saved to the INI file on exit): memext (options.type pehu or luftner), fdc (fdc0, fdc1), qd (mz1f11, virtual, unicard) and ide8 (master, slave). The response carries type and changed, requires_restart is false. gal5 is not emulated and returns an error. See mcp-server/tools-overview.md.

	- BUGFIX: MCP - emu_media_state reported in ro for the qd slot the saved write protection choice from the configuration, not the actual drive state: ro true after ejecting the image, ro false for the Unicard boot loader (always read only). Now ro is the actual protection of the inserted image (user choice, a file without write permission, the Unicard boot loader), false with no image.

	- CHANGE: Unicard and MemExt Luftner - the Unicard SD card root (default SD-mz800, SD-mz700, SD-mz1500) and the MemExt FLASH file (default flash.dat) given as relative paths are now looked up in the configuration directory (the program directory by default, otherwise --cfg-dir), like the INI file and the RAM disk backup files; before, in the current directory the emulator was started from, where the Unicard created a new empty SD card when connected. If you start the emulator from a directory other than the one it lives in, move your existing SD card directory and flash.dat next to the program. An absolute path works as before.

	- CHANGE: MCP - emu_settings_set no longer accepts the keys QDISK/filename and QDISK/write_protected; configuration elements of these names do not exist, so the write always ended with an error. The Quick Disk image and its write protection are set with emu_media_insert(slot="qd").

	- MCP - emu_media_insert with slot qd now mounts an MZ-1F11 Quick Disk image (.mzq); before, it always answered that the insert is not supported, and the emu_settings_set procedure shown in the documentation did not work. The file must exist. If the drive is not connected as MZ-1F11 (the default is the Unicard boot loader), it is switched the same way as the MZ-1F11 menu choice, which disconnects the Unicard boot loader from the QD, and the response reports it with switched_to_mz1f11. ro sets write protection like the menu toggle. See mcp-server/tools-overview.md.

	- CHANGE: MZ-1R18 and PEZIK RAM disk - a backup file given by a relative path (default rd-mz800.dat, rd-mz700.dat, rd-mz1500.dat, pezik_e8.dat, pezik_68.dat) is now read from and saved in the configuration directory (the program directory by default, otherwise --cfg-dir), like the INI file, breakpoints and IDE8 images; before, it was the current directory the emulator was started from. If you start the emulator from a directory other than the one it lives in, move your existing RAM disk file next to the program. An absolute path is used unchanged.

	- MCP - Python wrapper (mcp_server.py): the new environment variable MZ800EMU_CFG_DIR passes a configuration directory to the spawned emulator (pipe transport) as --cfg-dir; the INI file, breakpoints, symbols, watches, bookmarks, RAM disk backup files, the Unicard SD card root and the MemExt FLASH file are then read from and saved there instead of your own configuration. See mcp-server/python-wrapper.md.

	- BUGFIX: MZ-1P16 plotter - the drawing self-test, a plotter reset (also a machine reset) and attaching the plotter stopped the emulation until the plotter CPU caught up with homing or the self-test in one go (tenths of a second up to a second for the self-test, tens of milliseconds for a reset or attach); music stalled and the sound popped. Now the plotter catches up in parts every frame and the emulation keeps running; the self-test draws within about two seconds.

	- CHANGE: The host keyboard and the joystick on the numeric keypad reach the machine at the frame boundary (in pause right away) when no input recording runs, so a key press shows up at most one frame later, as it always did while recording inputs; before, the application window wrote them directly while the emulation was running. The Paper feed and Run drawing self-test buttons in the MZ-1P16 plotter window are carried out by the emulation like the other device controls and are refused while inputs are recorded or played back. Both now change the state revision state_rev.

	- MCP - new tool emu_machine_hash: a content fingerprint of the whole machine (SHA-256) by parts - CPU, RAM, MemExt, VRAM, PCG, chips and controllers, memory mapping, ROM, inserted media, inputs (keyboard, joysticks, autotype), RAM disk and tape - and one total fingerprint. It answers "is the machine in the same state as before?"; the answer lists the covered parts and what the fingerprint does not see (screen, sound, plotter). With include_media it also hashes the content of disk, Quick Disk, IDE8 and tape images, MemExt FLASH and RAM disks. See mcp-server/tools-overview.md and emulator://docs/state_revision.

	- MCP - machine state revision state_rev: a number that changes every time the state of the emulated machine may have changed (an MCP write, the debugger and menus in the GUI, device windows, snapshot load, reset, input replay, every run and step). In pause an equal value means the machine state did not change. It is returned by emu_get_state, emu_state_observe, tools that change the state and the events paused, resumed and step_done. Tools that change the state (memory and region writes, registers, CPU flags, I/O, interrupt injection, snapshot load, media and others) accept expected_state_rev: they act only if nothing changed since the agent's read, otherwise the error is "Precondition failed: state changed" and nothing is done (this also guards against a change that was undone and a banking change that a content condition cannot see). emu_state_observe with if_state_rev_differs reads nothing when the state did not change and returns only not_modified. A new event state_changed reports a change of the state in pause that an MCP client did not make (debugger windows, menus, devices, input replay) with a list of sources, so an agent learns about a person's intervention without polling. See mcp-server/tools-overview.md and emulator://docs/state_revision.

	- BUGFIX: MCP - emu_get_state (emu_status) read running and run_seq at two different moments, so a run starting or stopping in between could return a run number that did not belong to running. Both values (and state_rev) now come from one moment.

	- CHANGE: Debugger - Watch (the window and MCP emu_watch_eval and emu_watch_list) and the expression search in the Memory Browser never change the machine state: the suffix ! ([addr]!, port[N]!), which reads with a side effect in breakpoint conditions and actions, is ignored there, as it already was in the breakpoint Test Eval. Before, an expression with ! in Watch read the memory and the port like the CPU on every evaluation (for example port[0xE0]! remapped the memory). A port read with a side effect is available through a breakpoint action or MCP emu_io_read.

	- MCP - new tool emu_replay_goto: the machine state (registers, memory) at any moment of a playing input replay. The target is a time in GDG ticks, a frame and tick, or a cputrack trace record (the state before or after it); the playback jumps to the nearest checkpoint, plays on at MAX SPEED and the emulator stops itself at the start of the instruction at the target time; the reply carries the state like emu_state_observe. A trace of any part can be recorded during playback (it equals the original run) and the full state computed for any of its rows; on a register trace the reply compares the registers of the record with the reached state. By default breakpoints do not stop the jump; a checkpoint at the target can be saved for fast further jumps. See mcp-server/tools-overview.md and emulator://docs/replay.

	- BUGFIX: Debugger - a pause (breakpoint, run to address, Pause key) between an EI instruction and the next instruction, or in HALT, with an interrupt pending delayed the interrupt acknowledge after resuming until the next emulator event, so the program then ran differently than without the pause (and an input replay playback could diverge). The run after a pause is now the same as without it.

	- MCP - emu_run_until_tstate accepts target_ticks: a time in GDG ticks (the same clock as the trace column t, stop_ticks and Cycle in breakpoint conditions); the emulator stops itself at the start of the first instruction whose time is >= the target, at full speed and without the wrap of the 32-bit total_cycles counter that a reset also clears. emu_state_observe returns this time in time (ticks).

	- BUGFIX: Trace Suite - the time of CPU Track records (chunk anchor start_pxclk in the manifest, column t in emu_trace_read) was off by tens of GDG ticks in the second and later chunk files (the anchor was taken in the middle of an instruction), and after a snapshot load, a replay seek or rewind during recording the time went on from the old value. The chunk anchor now continues exactly from the end of the previous chunk and a time jump starts a new chunk anchored at the real time.

	- Debugger - the disassembler shows an ignored DD or FD prefix (followed by another DD, FD or ED prefix) as DD* / FD* instead of NOP*; the tooltip says that the CPU runs it together with the next instruction, so a step (F7) skips both. An undefined ED instruction stays NOP*.

	- BUGFIX: Virtual CMT - when an MZF file disappeared or could not be read between opening and the size check, the check read a file that was not open; the check is now skipped.

	- BUGFIX: MCP - a breakpoint name given in emu_bp_create_with_init or emu_bp_update without the auto_name field was not kept: the breakpoint got the automatic name Addr: 0x.... A custom name now turns the automatic name off and survives an address change; auto_name: true brings it back.

	- Command line: --fdd <N>=<file> (repeatable) and --fdd0 to --fdd7 <file> insert a DSK image into floppy drive N at startup (0-3 the FDC controller, 4-7 the secondary FDC1 controller). It replaces the disk from the .ini in the same drive and the path is saved to the .ini like a disk inserted from the menu (unless --no-save-ini). --fdd-readonly <N> write-protects the drive for this run only. A missing file, a wrong drive number or a drive given twice = error and exit; a disconnected FDC1 or an image that cannot be opened = error (in --headless exit with code 3). Works in all binaries and with --mcp-pipe. See devices/fdc.md.

	- MCP - the text of the breakpoint actions log and stop with a message is now readable through MCP: emu_trace_read with the channel bplog returns a row for every output with the text, time, frame, instruction address (InsnPC), PC and the breakpoint number and name, with a filter on the breakpoint (number or name), the kind (log or stop) and the address. Before, the text went only to the standard output of the emulator ([BP-LOG], [BP-STOP]), which an MCP client does not see. The channel is always on, keeps the last 4096 rows and the new tool emu_bplog_clear empties it. See mcp-server/tools-overview.md and emulator://docs/trace_read.

	- BUGFIX: The ROM menu and the User Defined ROM Settings window, Rear DIP Switch (Mode 700 Compat., CMT Polarity), Allow PSG1, the joystick type in Joystick Setup, the CMT menu, the Virtual CMT window and the Tape Filelist (open tape, default speed, custom pulses, block speed, CMT Hack, Fix FNAME Terminator), Autotype and the virtual keyboard changed the machine directly from the application window while the emulation was running, so the emulation could read a tape, ROM or autotype text that was being replaced or freed at that moment. The emulation now applies these changes itself, within one frame at the latest. While an input replay is recorded or played, such a change is refused with a message (the joystick type as well); Autotype and the virtual keyboard are recorded as before.

	- BUGFIX: Device menus and windows (FD Controller including the Alt+1..4 and Alt+Shift+1..4 shortcuts, Quick Disk, Memory Disk and the Pezik Settings window, MemExt including the Load MemExt RAM / FLASH From File dialog, IDE8, Unicard including the runtime reinitialization dialogs, Printer, the printer in Rear DIP Switch and the MZ-1P16 plotter window) changed the devices directly from the application window while the emulation was running, so the emulation could work with RAM disk memory, a disk image or the printer file that was being freed, changed or closed at that moment. The emulation now applies the change between instructions, within one frame at the latest. A failed runtime reinitialization from the Unicard mismatch dialog closes the dialog, reports the error and leaves the Unicard disconnected.

	- BUGFIX: FD Controller - the tooltips of the HD Patch and Bus translation options said that a change requires an emulator restart; the controller reads both options while running and the change applies immediately.

	- Debugger - the instruction history (upper table of the Disassembly window, the last 32 instructions) keeps the CPU registers before every instruction (AF, BC, DE, HL, IX, IY, SP, WZ, I, R, IM, IFF1, IFF2); a tooltip over the mnemonic shows them. MCP emu_history_get returns them with every entry in the object regs, so an agent can see the state before the last instructions at a breakpoint stop without a trace.

	- Trace Suite - CPU Track can also record the CPU registers after every instruction (format 3, 32 bytes per record instead of 12): the Record registers option in the menu Debugger Settings -> Trace Suite -> CPU Track, --cputrack-regs on, INI [TRACE_CPUTRACK] regs or MCP emu_trace_start with regs=true. The state before an instruction is the state in the previous record; sync records keep it with a PC filter and after a register change outside an instruction (a debugger or MCP write, reset, snapshot load). MCP emu_trace_read has the columns kind and registers af .. halted, the parameter regs (after or before) and a filter on a register value, so it finds when a register got a value; emu_trace_status returns has_regs and the initial registers of the recording initial_regs (before only in the manifest). The format is described in debugger/formats/CPU-track_format.md, the recipe in emulator://docs/trace_read.

	- The tool docs/tools/coverage_to_lcov.py converts a code coverage export (JSON) to an lcov tracefile for genhtml and editor extensions: with a sjasmplus or pasmo listing the listing lines get execution counts and the conditional instructions two branches, without a listing a pseudo file with addresses is written. See debugger/code-coverage.md and tools/README.md.

	- New feature: code coverage in the debugger. The Coverage tab of the CPU Profiler window starts and stops collecting (level branch or detail), clears the data, marks a moment (Mark) and exports JSON or CSV; the table lists conditional instructions by which way they went (partial branches, both branches, all conditional), code new since the mark or everything, at the detail level with counters and the memory cell; clicking a row opens the address in Disassembly. The Disassembly #1-#5 windows show a coloured mark at every executed instruction (green = executed or both branches, yellow = taken only, orange = not taken only) and the row tooltip shows the details; it is turned off in the debugger window menu Settings -> Disassembled -> Show code coverage.

	- MCP - code coverage: emu_coverage_start collects which instructions ran and which way the conditional instructions went (JR, JP, CALL and RET with a condition, DJNZ, LDIR, CPIR, INIR, OTIR and the decrementing forms), at the branch level by address, at the detail level also by physical cell and code version (banks, self-modifying code) with counters. emu_coverage_read reads the rows page by page with a filter (for example only branches that went one way), emu_coverage_mark marks a moment after which newly executed code can be listed, emu_coverage_status reports how complete the data are and emu_coverage_export writes JSON or CSV. Collection can also be started from the command line (--coverage, --coverage-save-on-exit), from the INI section [COVERAGE] and from breakpoint actions (coverage_start, coverage_stop, coverage_mark); result.json of a headless run contains a summary. See mcp-server/tools-overview.md and emulator://docs/coverage.

	- BUGFIX: Debugger - a data read from the address right after the instruction being executed (for example RET or POP with SP pointing right after the instruction, or LD A,(nn) with the address after the instruction) was taken as a read of an instruction byte: a memory read breakpoint (MEM_R) on that address did not stop and the Memory Heatmap (CDL) counted it as execution (X) instead of a read (R).

	- BUGFIX: MCP - emu_mem_write and emu_mem_write_force with exactly 65536 bytes (the whole memory from address 0) wrote nothing: emu_mem_write returned a memory check error at address 0000h and emu_mem_write_force reported 65536 bytes written. The whole block is now written, by emu_mem_write only when the whole memory is writable.

	- Joystick Setup window has an Apply button: it applies the settings and keeps the window open, so the changed joystick can be tried right away.

	- BUGFIX: Joystick - with a joystick emulated on the numeric keypad, the keypad keys 0-9 also acted as keys of the MZ keyboard: with NumLock on as the digits, with NumLock off as the cursor keys and INST. Now they control only the joystick, regardless of NumLock. The other keypad keys (+ - * / . Enter) stay keyboard keys; without a joystick on the numeric keypad nothing changes.

	- BUGFIX: Joystick MZ-800 - the joystick strobe was taken from bits PA5 and PA6 of the 8255 instead of PA4 (joystick 1) and PA5 (joystick 2). A program strobing each joystick separately (OUT 0EFh and 0DFh to port 0D0h) read neither joystick, and a program strobing both with 0CFh (like the joystick routine of the ROM at 0FA00h) read only joystick 1. Now PA4 enables joystick 1 (port 0F0h) and PA5 joystick 2 (port 0F1h), as in the Service Manual and the ROM.

	- MCP - new tool emu_state_observe reads registers, flags, the run number, time and up to 16 memory windows (a CPU address range, or a physical region by kind) from one moment, also while the emulator runs; two separate calls always see two different frames while running. Each window returns SHA-256 and optionally the data; on request also the beam position, the memory map and state part hashes. See mcp-server/tools-overview.md and emulator://docs/state_observe.

	- MCP - conditional writes: emu_mem_write, emu_mem_write_force and emu_region_write accept expected_sha256 (SHA-256 of the bytes being overwritten, as returned by a read), emu_set_register an expected value and emu_set_cpu_flags an expected object. The emulator compares and writes in one step; if the memory or register changed since it was read (the program runs, the user edited memory in the GUI meanwhile), nothing is written and the error "Precondition failed:" carries the current value. Memory writes return before_sha256 and after_sha256 (with want_hashes also without a condition), register writes the previous value. A refused write is not stored in an input recording and the MCP Activity window shows it as rejected. See emulator://docs/conditional_writes.

	- BUGFIX: MCP - the description of emu_mem_read stated a read length of 1-256 bytes, while the emulator read up to 65535 bytes. emu_mem_read now reads up to 65536 bytes (address + length at most 10000h, so the whole memory in one call from address 0) and the description says so.

	- BUGFIX: Z80 - a stray DD or FD prefix (the byte after it is not an IX or IY instruction, for example DD 00) increased the R register by 3 instead of 2 and the byte after the prefix was read from memory twice. An interrupt could also be accepted between the prefix and the instruction. Now the prefix and the instruction are a single step as on a real CPU: R increases by 2, the byte is read once and a debugger step executes both the prefix and the instruction.

	- BUGFIX: Z80 - INIR, INDR, OTIR and OTDR left BC + 1 or BC - 1 in the internal MEMPTR register in a repeating iteration. MEMPTR of a repeating iteration is now the instruction address + 1, the same as for LDIR and CPIR, as measured on real Z80 CPUs and on the MZ-800. MEMPTR is visible in the debugger, over MCP (WZ) and in bits 5 and 3 of F after BIT n,(HL).

	- BUGFIX: Z80 - LDIR, LDDR, CPIR, CPDR, INIR, INDR, OTIR and OTDR set the flags of a repeating iteration like those of the last one. When the instruction stops between iterations (interrupt, NMI, a debugger step), bits 5 and 3 of F are now copies of bits 13 and 11 of the instruction address, and INIR, INDR, OTIR and OTDR also change P/V and H, as measured on real Z80 CPUs and on the MZ-800. The last iteration and the single LDI, CPI, INI, OUTI and the others do not change.

	- BUGFIX: Memory Heatmap (CDL) - the export format documentation gave a 12 B cell with three counters R, W, X. The export writes 16 B with a fourth counter S (stack writes), so files read according to the documentation came out shifted. The CDL import in the GUI now rejects an export with a different cell size.

	- BUGFIX: Trace Suite - the CPU Track format documentation did not match the export: it described nonexistent fields initial_state.regs and memory_dumps instead of initial_regs and initial_*_file, gave the MZ-800 VRAM and EXVRAM as 32 KB instead of 16 KB, listed RAM disk and MZ-1500 CG-RAM files that are not written, and mentioned VRAM WAIT only in the MZ-700 mode. The manifest example is now a real export.

	- BUGFIX: Debugger - the volume limit of breakpoint action writes (fwd_byte_limit_mb, default 256 MB) also counted a Trace Suite recording started from the menu or over MCP without any breakpoint. Once exceeded, the emulation paused itself with "BP #-1" and a headless run with --exit-after-frames hung. Now the limit counts only snapshots and traces saved by breakpoint actions and channels that a breakpoint action started. Other recordings are limited only by their own max_total_mb, which stops the recording while the emulation keeps running. An MCP run stopped this way reports stopped_by "bp_action_saturation" instead of "unknown".

	- BUGFIX: Debugger - with a breakpoint whose action continues the run (continue), commands from the GUI and MCP (register and memory reads, writes) could run in the middle of an instruction. With a MEM_W breakpoint a read saw the PC already past the instruction and the memory still before the write, and the instruction overwrote a memory write right away. Now only a pause and a state query are served after the breakpoint action, other commands wait for the end of the frame or for the pause.

	- BUGFIX: CMT hack - a write to the ports 01h and 02h (OUT) started the CMT hack file loading even with the CMT hack disabled. A program writing to these ports then got different registers than on a real machine. Now the ports react only with the CMT hack enabled, on MZ-700, MZ-800 and MZ-1500.

	- BUGFIX: MCP - a mem_write rejected by the memory check (a write to ROM or another non-writable area) showed up in the GUI overview of MCP actions as a performed write. Now a rejected write is reported only as an error.

	- BUGFIX: MCP - region_read and region_write with a region ID from a list taken before the configuration changed (loading a snapshot with a smaller RAMdisk, a MemExt or PEZIK change) read and wrote according to the old list. With a smaller RAMdisk this meant reading past the end of its memory and a crash of the emulator. Now such an ID fails with "stale region id" and the client has to call regions_list again, which also returns a new layout_gen field. Region reads in the Memory Browser check the actual size of the RAMdisk.

	- BUGFIX: GDG MZ-800 - wait states (WAIT) on CPU access to the VRAM. In the MZ-800 mode a VRAM read waited only right after a write, and in the MZ-700 mode the first access in the visible part of a line had no WAIT even for a read. Now they follow a simulation of the GDG circuit: every read waits for a free memory cycle (2-5 T-states in the MZ-800 mode, up to the end of the visible part of the line in the MZ-700 mode), a write goes through a one-byte buffer and waits only until the GDG has written the previous write. Programs that read the VRAM (copying from the VRAM, INC (HL), masked sprites, SEARCH) run slower than before. The numbers of wait states come from the simulation, they have not been measured on a real machine. The GDG debugger window shows the WRITE FF state instead of MZ700 WR latch.

	- BUGFIX: GDG - with the hardware scroll on, every CPU read and write of the VRAM was shifted by the scroll offset. On the real MZ-800 the offset applies only when the B/A bit (bit 4 of WF and RF) selects the displayed frame (bit 0 of DMD); an access to the other frame goes to the unshifted address. In 320x200 with 16 colours and 640x200 with 4 colours the offset applies always, as before. Programs that switch frame A/B or the B/A bit while scrolling now draw as on the real machine.

	- BUGFIX: MCP - emu_irq_inject and emu_nmi_inject were accepted only while a chip held the INT line, and the NMI only with interrupts enabled. Without a hardware interrupt request they only set the pending flag and the interrupt never came. Now the injected NMI is accepted always and the injected IRQ when interrupts are enabled (with DI it waits for EI), as documented.

	- BUGFIX: Snapshots - Load Snapshot, Save Snapshot, Quick Load and Quick Save from the menu are carried out by the emulator in a pause, not by the window. Before, a snapshot could be saved or loaded while the emulation was still running (in particular in builds without the debugger), so the saved state could be inconsistent. A load is refused while an input replay is being recorded or played.

	- BUGFIX: Debugger - Test Eval in the breakpoint edit panel is evaluated by the emulator, so all registers and memory of one expression come from the same moment (while running at the end of a frame). As the documentation says, the ! in [addr]! and port[N]! is ignored there: a MEM_R breakpoint no longer fires and the port is only probed.

	- BUGFIX: the standard RAM disk is named MZ-1R18 (it was MR-1R18) in HW & Devices -> Memory Disk, in the Memory Disk State window and in the names of the JSS ROMs.

	- New feature: Screenshot Control window (Tools -> Screenshot -> Screenshot Control..., Alt+G) and Audio Capture Control window (Tools -> Audio Capture -> Audio Capture Control..., Alt+Shift+Q), like the remote control of video recording: the state, the last result and all controls with their keys in a window that can stay open. See screenshots.md and audio-capture.md.

	- BUGFIX: Z80 - PUSH, CALL, RST and accepting an interrupt or NMI wrote the low byte of the stored value first. The high byte is now written first (to SP-1), then the low byte, as the Zilog Z80 manual specifies. The memory contents after the instruction are unchanged; the order is visible in write breakpoints on the stack and in writes to memory-mapped I/O.

	- New feature: input recording and playback (Replay). Replay -> Record Inputs... records from a start snapshot the keyboard, the joysticks (also the host joystick), resets, autotype, tape control, files chosen for the CMT hack and debugger writes, all at frame boundaries, together with state hashes of the CPU, memory and peripherals; the contents of the mounted disks, Quick Disk, IDE8 disks and the tape are stored in the replay. Replay -> Play Replay... repeats the run exactly - also in a new process without the media files and at any speed - on copies of the media, with other breakpoints, trace or the RAM Write Log, and stops at the first frame whose state differs. The Unicard clock runs from the emulated time while recording and playing back. While recording, machine settings, loading a snapshot, inserting media and tape settings are not available. Checkpoints every 5 seconds (the last 5 minutes, [REPLAY] section of the configuration): Replay -> Rewind (Alt+Shift+J) goes back while recording and records on from there, Replay -> Seek... jumps the playback to any frame. Replay -> Replay Control... (Alt+J) opens a window with the state and all controls. See replay.md.

	- MCP - input recording and playback: emu_replay_record_start, emu_replay_record_stop, emu_replay_play, emu_replay_play_stop, emu_replay_rewind, emu_replay_seek (pause reason replay_seek), emu_replay_status; the end of a playback is a pause with reason replay_end or replay_desync. Tape control over MCP is recorded; a debugger write in a pause between frame boundaries and tools the replay cannot repeat (snapshot load, media, inserting a tape, tape settings, settings) are refused with an explanation while recording. See mcp-server/tools-overview.md and emulator://docs/replay.

	- Unattended runs: --replay-record, --replay-hash-interval, --replay, --exit-at-replay-end and --replay-verify (checks a replay at MAX SPEED); a playback that differs returns exit code 4, result.json has a replay object and the new hash cpu (registers and hidden Z80 state). See replay.md and mcp-server/headless-mode.md.

	- MCP - run control: every run (resume, run to an address, step) has a number run_seq and every stop a record (reason, PC, breakpoint, who started the run and how, time in GDG ticks). New tools emu_resume (free run without blocking), emu_wait_stop (waits for the end of a run, at most 25 s per call) and emu_get_stop_history (resource emulator://run/history). emu_resume, emu_run_until_addr and emu_step_out take a deadline in emulated time (deadline_frames, deadline_ms, deadline_ticks), deterministic and kept over a reset. emu_pause(if_run_seq) does not stop a run that the user started in the GUI meanwhile. See mcp-server/tools-overview.md and emulator://docs/run_control.

	- MCP - the paused event comes exactly once for every stop, including a step, a deadline and breakpoint action saturation, and carries run_seq, GDG ticks and who started the run; pausing an already paused emulator sends no event. A new resumed event reports a run start, also from the GUI. emu_step_into and emu_step_over return completed (the step really executed) and running; a single-instruction step returns after it executed. emu_run_until_raster, emu_run_until_tstate and emu_run_until_event end after at most 20 s (time_limited).

	- MCP - SHA-256 instead of transferring data: emu_mem_read and emu_region_read return sha256 of the bytes read (only the hash with want_data=false), the new emu_frame_hash returns a hash of the picture and of the VRAM with the beam position; screenshots carry the same image_sha256.

	- BUGFIX: MCP emu_run(frames) interrupted by a breakpoint or a pause kept its limit active: the next run (also Continue / F5 in the GUI) stopped by itself after the rest of the frames.

	- BUGFIX: Debugger - a step (Step Into, MCP emu_step_into and emu_step_n) that completed a frame could lose the following step: emu_step_n then reported all steps but executed one less, and a command sent right after the step could see the state before the step.

	- New feature: Memory Search (Debugger -> Memory Search, Alt+Shift+E) finds where a program keeps a value (lives, score, a timer) by narrowing candidates: User RAM, Logical Z80, VRAM, MemExt banks, RAM disks or all writable memory; u8-s32 (LE/BE), packed BCD and digit strings (raw, ASCII, display code); filters equal, less, greater, between, increased / decreased (by N), changed (by N), unchanged and bits under mask against a value, the previous or the first sample; Undo / Redo, preview of the filter. A candidate opens in the Memory Browser, goes to Watch, gets a write breakpoint in the right zone or is frozen. See debugger/memory-search.md.

	- MCP - memory search: emu_memsearch_start, emu_memsearch_filter, emu_memsearch_sample, emu_memsearch_undo, emu_memsearch_redo, emu_memsearch_list (values, CPU address and a ready write breakpoint for emu_bp_create_with_init), emu_memsearch_eliminate, emu_memsearch_close; Freeze Bytes over MCP: emu_freeze_add, emu_freeze_remove, emu_freeze_list. See mcp-server/tools-overview.md and emulator://docs/memsearch_workflow.

	- BUGFIX: MemExt PEHU - Memory Browser, Freeze Bytes and the MCP tools emu_regions_list / emu_region_read showed only the first half of the 512 kB (PEHU banks 20h-3Fh were missing).

	- New feature: unattended runs for CI (--headless): the emulator ends by itself when a condition is met and returns an exit code - --exit-after-frames, --timeout-frames / --timeout-seconds (emulated time), --exit-on-pc, --fail-on-pc, --exit-on-write, --exit-on-out, or a breakpoint with the action exit from a set loaded by --bpt. --result-json or --automation-dir writes the result (reason, exit code, time, registers, SHA-256 hashes of memory and screen, artifacts), --exit-screenshot and --exit-snapshot save the final screen and state. Exit codes: 0 success, 1 test failed, 2 timeout, 3 error of the emulator or the options. Video recording and audio capture are finished whatever the exit code. See mcp-server/headless-mode.md.

	- Debugger - breakpoint actions stop ["message"] (stop, optionally with a message - log and stop in one breakpoint) and exit <code> ["message"] (end the run with an exit code; in the GUI and with MCP the emulator only pauses, emu_run reports stopped_by exit and the paused event has the reason exit). See debugger/breakpoints/action-dsl.md.

	- BUGFIX: --headless - an exit after an error no longer waits 5 seconds on Windows.

	- New feature: RAM Write Log (Debugger -> RAM Write Log) records the writes into memory: for every write the address of the instruction that wrote, the CPU address, the memory cell (RAM, MemExt, VRAM with the MZ-800 plane, PCG, ROM), the old and the new value and the source (instruction, return address of an accepted interrupt, debugger, breakpoint poke, freeze, tape, program load). The window shows the last writer and the write history of a byte - the last writer also after its record was overwritten - and the newest writes. Memory Browser: right-click a byte -> Who wrote this byte?. The options --ramlog-mode, --ramlog-ring, --ramlog-capacity, --ramlog-lo, --ramlog-hi and the [RAMLOG] section of the configuration start recording from start or while the debugger window is open. See debugger/ram-write-log.md.

	- MCP - RAM write log: emu_ramlog_start (ranges of CPU addresses or memory cells, ring or fill, size), emu_ramlog_stop, emu_ramlog_clear, emu_ramlog_status, emu_ramlog_who_wrote (last writer and write history of a cell with the current memory mapping) and emu_ramlog_writers (instructions that wrote into a range); the records are read with emu_trace_read, channel ramlog. See mcp-server/tools-overview.md and emulator://docs/ramlog.

	- Debugger - breakpoint actions ramlog_start, ramlog_stop and ramlog_clear, and the expression function lastwriter(addr): the address of the instruction that last wrote the memory cell at the address. See debugger/breakpoints/action-dsl.md and debugger/breakpoints/expression-syntax.md.

	- MCP - the audio capture also keeps its data in memory (on by default via MCP, parameters memory, pcm, memory_minutes, pcm_seconds), readable without files, while it runs and after it ends: emu_trace_read channels audio_psg_writes, audio_levels and audio_frames (a summary of each frame), new emu_audio_capture_summary (silent and sound spans, notes played by the PSG, tone or PCM estimate for the speaker, delay and difference of the audio output against the reference) and emu_audio_capture_pcm (a short PCM window as WAV, a resampled preview or an exact 44100 Hz copy). A capture into memory only creates no folder. See audio-capture.md and emulator://docs/audio_capture_read.

	- MCP - new tools emu_trace_status and emu_trace_read: Trace Suite records (cputrack, iorqlog, intlog, hwlog, marklog) and the Event Viewer ring can be read page by page directly via MCP, also while recording runs and without parsing files. Data still only in memory is readable too (a short run does not have to be written to disk first); after a stop the last recording stays readable. Cursor, filters (PC, port, chip, marker, time), column selection and a character budget per page; cputrack rows carry the disassembly from the recorded bytes, the symbol and the time. See Trace_Suite.md and emulator://docs/trace_read.

	- Trace Suite - cputrack record format v2: the previously reserved 12th byte carries the standard instruction length in T-states (without WAIT; for conditional jumps according to whether the jump was taken; 0 for a collapsed HALT or self-loop record). An interrupt acknowledge is written as a record with instruction length 0 (handler address, acknowledge T-states). The manifest carries event_record_version: 2. The time of every instruction can thus be computed without re-simulation, exactly even with interrupts. See CPU-track_format.md.

	- BUGFIX: Snapshot - also saves and restores further peripheral state that affects the running program: the scheduled step of the CTC0 counter (8253), the MZ-800 hardware scroll registers, the VRAM wait state flag of the MZ-700 mode on the MZ-700, and the transient end-of-track state of the floppy controller with the sector list for track reads. Before, these values stayed from the machine being overwritten by the load. A snapshot from an older version sets them as after reset (CTC0 continues from the nearest edge of its clock).

	- BUGFIX: Snapshot - a snapshot saved with a different RAMdisk or IDE8 configuration loads safely. A RAMdisk larger than the one configured in the emulator was copied past the end of its memory (the load hung or corrupted memory); now the RAMdisk memory adapts to the size from the snapshot. An IDE8 disk connected in the snapshot stays disconnected when no disk image is open in the emulator; before, it looked connected and every read failed.

	- BUGFIX: Snapshot - also saves and restores the hidden state of the Z80 CPU: the MEMPTR (WZ) register, pending INT and NMI interrupts with the vector, the interrupt delay after EI and the T-state counter. Before, these values stayed from the machine being overwritten by the load, so the state after the load did not match the saved one. A snapshot from an older version sets the hidden state to the values after reset.

	- BUGFIX: Trace Suite - cputrack records the instruction bytes as the processor fetched them. An instruction that overwrote its own bytes or switched the memory banking under itself used to be recorded with the bytes found in memory after it ran (e.g. LD (nn),A as NOP). cputrack recording is about 12 % slower because of this (measured in MAX SPEED).

	- BUGFIX: MCP - emu_event_poll with timeout_ms above 30 000 no longer fails with a wrapper error (response timeout); the wrapper waits as long as the emulator may wait (up to 60 s).

	- MCP - the emu_trace_start, emu_trace_stop, emu_trace_reset and emu_trace_save tools now also control the marklog channel (markers from the breakpoint action mark), as do the trace_start and trace_stop breakpoint actions.

	- BUGFIX: MCP - emu_history_get during running emulation returns the instruction history position from the same moment as the rows; before, the position was read later and might not match the rows.

	- BUGFIX: Debugger and MCP - memory writes by the debugger (Memory Browser edits, byte freeze, MCP emu_mem_write and emu_region_write) no longer trigger MEM_W breakpoints. Before, every such write to a watched address raised the hit count and emitted the breakpoint_hit and paused events; a frozen byte on a watched address triggered the breakpoint in every frame.

	- Debugger - breakpoint expressions have the new identifiers InsnPC and FrameCycle. InsnPC is the address of the executing instruction: in MEM_R, MEM_W and IORQ breakpoints PC already points behind the instruction that makes the access, InsnPC points at it. FrameCycle counts GDG ticks from the start of the frame and, unlike Cycle (which wraps after about 121 s of emulation), never wraps.

	- BUGFIX: Debugger - in MZ-700 mode, displaying the addresses 0E000h-0E008h (Memory Browser, Watch, disassembler, MCP emu_mem_read, breakpoint expressions) no longer affects the emulation. Before, reading 0E001h advanced the automatic text typing (autotype), processed the host keyboard and disturbed the MCP key landing check, and on MZ-700 and MZ-1500 reading 0E008h polled the joystick. At 0E004h-0E006h the debugger now shows the 8253 counter instead of a constant.

	- BUGFIX: Debugger and MCP - memory reads by the debugger (disassembler, stack, MCP emu_mem_read and emu_dasm) no longer trigger MEM_R breakpoints. Before, every display of an address with a MEM_R breakpoint raised its hit count and emitted the breakpoint_hit and paused events, although the CPU read nothing.

	- BUGFIX: MCP and Memory Browser - with a Luftner MemExt, a 16 MB STD RAM disk and a PEZIK (over 500 memory regions) all regions are available. MCP emu_regions_list used to cut the list at 128 entries and emu_region_read / emu_region_write rejected higher IDs, so the RAM disk banks could not be read; the Memory Browser, its diff and the byte freeze saw at most 512 regions.

	- BUGFIX: Debugger and MCP - a stop on a temporary breakpoint (Run to cursor, Step over a CALL, MCP emu_run_until_addr and emu_step_out) now emits the paused event with the reason run_to, so an MCP client no longer has to poll the state (emu_run reports stopped_by run_to). A temporary breakpoint on an address that also holds a breakpoint with a false condition now reliably stops the emulation; it used to let it run on.

	- The --headless mode no longer keeps one processor core needlessly busy. The main thread without a window used to check for events in a loop, now it waits for them; the emulation speed does not change.

	- Debugger and MCP - a step or a continue from pause is carried out at once. Before, after a Step or Run command in pause the emulation still waited up to 20 ms, so automated stepping or repeated runs to a breakpoint that wait for the result paid an extra 20 ms per step or run.

	- BUGFIX: Video recording - when switching from real time back to emulation time, one frame could be missing in the recording (the switch took effect only with a short delay after the request). It now takes effect from the request.

	- MCP - emu_profiler_pc_bitmap returns the executed addresses of the per-PC profiler as an 8 KiB base64 bitmap (one bit per address, the same addresses as emu_profiler_pc_get and export) - code coverage that can be read often, for example after every step of an automated run. See mcp-server/tools-overview.md.

	- Audio capture - capture.json now contains the absolute start and end of the capture in GDG clock ticks since the emulation started (origin_ticks = time 0 in the CSV files and the first sample of reference.wav, end_ticks = the end of reference.wav, last_event_ticks = the last CSV row, began) and the platform clocks (clocks: gdg_base_hz, the real crystal gdg_real_base_hz, the CPU, CTC0 and PSG dividers, ticks per frame), so the capture events can be matched exactly with the run of the program. See audio-capture.md.

	- MCP - the direct JSONL command get_frame_screenshot (base64 PNG, resource emulator://frame/screenshot) accepts the same optional area, scale and crop parameters as emu_screenshot_save_to_file and returns area and scale in the response. It used to ignore them silently and always returned the whole picture; invalid options are now a parameter error.

	- BUGFIX: Per-PC profiler (CPU Profiler window, Per PC tab, and MCP emu_profiler_pc_*) - when collection was started or reset while the CPU was sitting in a HALT instruction, the first wait in HALT was counted as an executed instruction at the HALT address (4 T-states missing from halt_idle).

2026-10-14 - Released version 2.0.6

	- BUGFIX: Sound - a PSG channel that changed exactly at the start of an audio frame was held at its previous level for the whole frame (20 ms, on the MZ-1500 16.7 ms) in the sound output, in music once every one to three seconds; usually not audible in music, clearly visible when comparing with the exact sound of the audio capture (reference.wav). The sound recorded into a video in emulated time did not have this defect.

	- Audio capture in the GUI and on the command line: Tools -> Audio Capture -> Record Audio Capture (Alt+Q) records into a new folder in its own output folder (default audio_captures next to the emulator) what the sound hardware does - changes of the channel levels, PSG writes, the exact sound and the sound you hear (two WAV files to compare); AUDIO with the captured time is shown in the top left corner of the picture, a notification reports the folder. Settings... sets the output folder and selects the files to write. --audio-capture <folder> starts it right after startup, --audio-capture-frames <count> stops it after the given number of frames (with --headless the emulator then exits). See audio-capture.md.

	- MCP - audio capture for finding sound bugs: emu_audio_capture_start writes into a folder, in emulated time, every change of the output level of the sound channels (speaker and PSG channels, events.csv), every write to the PSG with its decoding (psg_writes.csv), the sound rendered exactly in emulated time (reference.wav) and the sound of the emulator's audio output path, i.e. what the user hears (sdl.wav, same format for a direct comparison); capture.json describes the capture. emu_audio_capture_stop and emu_audio_capture_status. See mcp-server/tools-overview.md.

	- Debugger - the CPU Profiler window has a new Per PC tab: for every instruction address it counts executions, T-states (including wait states) and WAIT states, also in code that is jumped to rather than called. Columns can be sorted, a range of addresses can be shown, a left click opens the address in the Disassembly; the status line splits the time into instructions, waiting in HALT and the rest (mainly interrupt acknowledge). Export CSV writes all addresses. See debugger/profiler.md.

	- MCP - per-PC profiler for finding where a program spends its time: emu_profiler_pc_start, emu_profiler_pc_stop, emu_profiler_pc_reset, emu_profiler_pc_get (busiest addresses with the nearest symbol, sorted by T-states, executions, WAIT or address, optional address range) and emu_profiler_pc_export (CSV). Time outside instructions is reported separately (halt_idle, other_tstates). With the profiler off the emulation is not slowed down. See mcp-server/tools-overview.md.

	- Frame series in the GUI: Tools -> Screenshot -> Record Changed Frames (Alt+Shift+F) saves a PNG of every emulated frame that differs from the previous one (or of every frame, see Settings...) into a new folder in the screenshot output folder, with the area and scale from the screenshot settings. A counter in the top left corner of the picture shows the saved files and frames; a notification reports the folder when the series ends. See screenshots.md.

	- MCP - frame series for finding animation bugs: emu_screenshot_series_start saves a PNG of every emulated frame that differs from the last saved one (or of every frame), with the same area, scale and crop as a single screenshot; only changes inside them count. Frames are taken in emulated time, none is skipped even at MAX SPEED (the emulation waits when writing cannot keep up). Files frame_NNNNNNN.png numbered by the emulated frame and index.csv; emu_screenshot_series_stop and emu_screenshot_series_status. See mcp-server/headless-mode.md.

	- New feature: screenshots (Tools -> Screenshot) on all platforms. Save Screenshot (Alt+F) saves a PNG of the picture shown in the window into the output folder (default: screenshots next to the emulator) with a name made of the platform and time, Save Screenshot As... asks for the file name. In Settings... you choose the area (whole frame with border, or the picture without the border), the scale (native computer dots - 320x200 or 640x200 picture - or 1x to 4x with the aspect ratio of the window, 2x = window at 100 %) and the output folder; the settings are saved in the configuration. See screenshots.md.

	- MCP - emu_screenshot_save_to_file has new optional parameters area (full frame or the picture without the border), scale (framebuffer pixels as before, native dots of the computer - 320x200 or 640x200 picture - or 1 to 4 times with the aspect ratio of the emulator window) and crop (a cut-out of the native image). See mcp-server/headless-mode.md.

	- CHANGE: MCP - emu_set_register with IR now writes the complete I:R pair (previously only bits 0-6 of R, I unchanged) and emu_set_cpu_flags writes all 8 bits of R including bit 7, the same as the LD R,A instruction. A saved CPU state can thus be restored exactly. Editing R in the CPU window of the debugger still keeps bit 7.

	- MCP - emulator://periph/gdg on the MZ-800 also returns the VRAM access registers (vramctrl: write format WF with the write mode and planes, read format RF with search mode and planes, VBANK) and the hardware scroll registers (hwscroll: SOF, SSA, SEA, SW in the units written to the ports, and whether the scroll is active).

	- BUGFIX: Debugger - the I/O ports window showed the hardware scroll registers SOF, SW, SSA and SEA of the MZ-800 shifted (e.g. 28h after writing A5h to SOF). It now shows the values the program wrote.

	- BUGFIX: MZ-800 hardware scroll - a change of a scroll register (SOF, SW, SSA, SEA) in the middle of a picture line was applied also to the part of the line the beam had already drawn. The drawn part now keeps the previous scroll position.

	- BUGFIX: CTC 8253 and speaker - the time of a write to the CTC (including the CTC0 gate) and of a speaker change was taken as if the already executed part of the instruction had passed twice, e.g. 14 CPU cycles after the start of LD (HL),A, which takes 7. CTC0 thus started counting a few CLK0 periods late and speaker edges were timestamped late by the same amount. The measured load behaviour of the CTC on a real MZ-800 is unchanged.

	- BUGFIX: Debugger - every save of JSON metadata leaked the whole JSON tree: trace recordings (each chunk rewrites its metadata), breakpoints, bookmarks, watches, breakpoint variables and the Memory Heatmap. The memory use of a long trace recording kept growing with its length.

	- New options --cmt <file>, --cmt-play, --cmt-play-pause and --cmt-boot: insert a tape (MZF, MZT, TAP or WAV) into the virtual cassette recorder at startup. The CMT hack is turned off for that session only and the Virtual CMT window opens. --cmt-play presses PLAY, --cmt-play-pause leaves the tape waiting until the computer turns the cassette motor on, and --cmt-boot (MZ-800) also holds the C key at startup so the boot menu loads the program from the tape.

	- BUGFIX: Snapshot - loading a snapshot kept the pending video (GDG) event of the machine being replaced. Depending on where the emulation was before loading, the MZ-800 in a graphics mode could crash right after the load, and on all computers the emulation could continue a few cycles off or the CTC1 counter could lose a pulse. The pending event is now derived from the restored raster position, also for snapshots saved by older versions.

	- BUGFIX: CTC 8253 - a counter loaded the written value depending on when the control word came instead of on the phase of its CLK input. Measured on a real MZ-800, the value is loaded by the first complete CLK pulse after the write: written while CLK is HIGH it loads one pulse later than written while CLK is LOW, the time of the control word does not matter. The CTC2 interrupt (clocked by CTC1) therefore came one CTC1 period earlier or later than on the real computer in some programs. Mode 0 now reads 0000h for a whole CLK period after reaching zero (previously FFFFh at once). Mode 3 reads the counter in steps of 2 like the real chip (previously 1); with an odd N the first half period of the output (HIGH) is the longer one, the tone frequency does not change.

	- DOCS FIX: MCP - the memory banking description (emulator://docs/memory_layout) claimed that IORQ OUT does not change the CG-ROM mapping on the MZ-800; in fact OUT (0E0h) unmaps the CG-ROM too (the VRAM stays) and OUT (0E4h) maps it together with the VRAM in MZ-800 mode and unmaps it together with the CG-RAM in MZ-700 mode. The pair IN A,(0E0h) + OUT (0E0h),A therefore gives RAM at 0000h-1FFFh and the VRAM at the same time. The emulator already behaved this way.

	- BUGFIX: MCP - emu_input_send_key, emu_input_send_keys, emu_input_send_keys_with_delays and emu_input_send_joystick did not hold the input for the given number of emulated frames: at MAX SPEED hundreds of frames passed instead of the given number, at normal speed on a still screen about three times as many. Hold and gap lengths are now exact in emulated frames at any speed; a paused emulator plays exactly the length of the sequence and pauses again, a running one keeps running. The reply now contains emu_frames, complete and interrupted.

	- BUGFIX: MCP - emu_run_until_addr on a running emulator answered running: true but only paused the emulation away from the target address. It now returns the error "Emulator is running" and the emulation keeps running unchanged.

	- BUGFIX: MCP - after emu_run_until_addr (and emu_step_out) without an open debugger window the temporary breakpoint on the target address stayed active, so the next emu_run stopped there again. The temporary breakpoint now lasts only until the next pause, the same as with the debugger open.

	- BUGFIX: MCP - emu_snapshot_load and emu_snapshot_load_buffer returned only "snapshot_load failed" without a reason (typically the emulator was not paused). The error now names the reason.

	- DOCS FIX: MCP - the emu_input_send_keys_with_delays example used an event format the emulator does not know; events are key, hold_frames, gap_frames.

	- Tape - support for the CMTSPEED headers of the UniCMT device in MZT tapes. A header placed between the parts of a tape (e.g. 2xspeed.mzf, 3xspeed.mzf) sets the pulse lengths of all following parts up to the next header; the header itself is not played and is not listed among the blocks. The pulses are played exactly as given by the header, not rounded to the nearest speed ratio.

	- Tape - Virtual CMT can use custom pulse lengths as the default speed and as the speed of a single block (Custom pulses... item in the speed selection: four lengths in µs, presets UniCMT 1x, 2x and 3x). The default custom pulses are saved in the configuration. MCP: pulses_us parameter of emu_cmt_set_speed and emu_cmt_tape_set_block_speed; the tape listing and the tape state report the pulse lengths.

	- BUGFIX: Tape - the default speed 2:1 (cp/m) was saved in the configuration as an invalid value and the speed 1:1 applied after an emulator restart (the same for speeds 3:2, 9:7 and 25:14 set via MCP).

	- BUGFIX: MCP - emu_media_run_mzf only loaded the program and jumped to its start; interrupt mode, Z80 PIO, CTC, palette and all other state stayed as the previous program left them, so the program could behave differently than after a tape load (e.g. it got no interrupts). It now resets the machine and starts the program in the same state as the --run-mzf option (new command media_run_mzf). A missing or truncated file returns an error without a reset. The old behaviour without a reset is available as emu_media_run_mzf with bootstrap=false.

	- BUGFIX: Keyboard - selecting a nonexistent keyboard column (value 10 to 15 in bits 0-3 of 8255 port A) made port B return a bogus value (typically 00h, as if all keys were pressed). A real MZ-800 selects no column in this case and returns FFh (verified on hardware). Programs that wait for all keys to be released and scan these values as well got stuck (e.g. Antiriad in the S. Hecht version stayed on the title screen).

	- BUGFIX: Cassette - MZF and MZT files were played with pulse lengths rounded to 44.1 kHz samples. At 3:1 speed this distorted the short pulse (high 90.7 µs instead of 81.9 µs), so programs with their own fast loader failed to load or loaded unreliably (e.g. Interkarate, parts 2 and 3). Pulses are now generated with GDG clock precision.

	- The file dialog remembers the last directory separately for each kind of file (tape, disks, Quick Disk, ROM, snapshots, debugger, ...), also across emulator restarts, as it did in versions 1.0.x (stored in the configuration, section [FILECHOOSER]). The Places panel has a new Recent group with the last used directories and a Bookmarks group for your own bookmarks (+ and - buttons); the expanded state of the Bookmarks, Recent and Devices groups is remembered.

	- BUGFIX: CPU - the R register was not incremented during the HALT instruction nor when accepting an interrupt (INT, NMI). Programs deriving a key or timing from the R register did not work (e.g. the tape version of the game Interkarate: the screen did not turn black after loading the first part). Broken since version 2.0.2.

	- BUGFIX: MCP - emu_cmt_tape_set_block_speed (cmt_tape_block_speed) had no effect, the block was played at the global speed.

	- New option --mode-switch <700|800> (MZ-800): rear mode switch position. The switch position is now saved in the configuration.

	- BUGFIX: Loading a snapshot overwrote the configuration. Cassette settings (polarity, speed, MZF size check), memory extension fill and the Pezik ramdisk backup are no longer restored from a snapshot; device connections and types, the Unicard firmware version and the second PSG are restored only until the emulator exits.

	- DOCS FIX: Debugger - the PCG editor and Memory Diff window descriptions match the actual controls (the PCG editor writes every change immediately and has no Save; Memory Diff has its own region and mode for each source).

	- BUGFIX: I/O Ports - the saved selection of recorded ports (Rec column) was discarded at start and after every history capacity change (all ports were recorded).

	- BUGFIX: MCP - emu_debugger_activate did not start CPU history or heatmap recording tied to the debug window and emu_debugger_deactivate did not switch the emulation back to the fast path without debug hooks.

	- BUGFIX: Debugger windows changed the emulator state concurrently with the running emulation (risk of a crash or corrupted data); the emulation thread now performs the changes. Affected: Memory Browser (write, Freeze Bytes), Event Viewer (capacity, Clear, mode, categories, import, Pause/Auto-mark on match), I/O Ports (history, Reset Activity), Breakpoints (Delete All, load from file, reset hit counter), Memory Heatmap (mode, Reset, Add/Sub), Memory Map (banking, DMD), MemExt Map, Callstack (Active, Reset), Ctrl+R and hiding the debugger.

	- BUGFIX: MemExt Map Settings (PEHU) - the window showed twice the 8 kB bank number and Apply without edits changed the map.

	- BUGFIX: I/O Ports - the saved history capacity was not applied at start (the history always held 10000 events while the option showed the saved value).

	- BUGFIX: --run-mzf in MZ-800 mode and the DMD option in the Memory Map window switched the GDG mode without the side effects of OUT (CEh); after --run-mzf the CTC0 timer thus stayed blocked (GATE0 = 0), unlike a ROM load.

	- New option --version: prints the version, revision, source origin and build details.

	- New option --speed <percent|max>: emulation speed at start (mainly for --headless).

	- BUGFIX: --run-mzf starts a program in the same state as after a ROM tape load (MZ-1500: missing palette and PCG graphics; MZ-800 and MZ-1500: muted timer sound; screen not cleared). CHANGE: on MZ-700 the real-time clock is no longer started (the ROM does not start it either).

	- BUGFIX: MCP - stopped answering entirely when the emulation thread got stuck; now returns "Emulator busy: command still running" (after about 20 s, 10 min for file operations).

	- Debugger and MCP - commands execute immediately while the emulation is paused (previously with up to 20 ms delay).

	- BUGFIX: Crash after loading a snapshot saved during tape playback when no tape was inserted.

	- BUGFIX: After loading such a snapshot a newly inserted tape did not play from the start and the program waited forever for the tape signal.

	- BUGFIX: MCP - the tape listing reported playable/recordable inverted; cmt_transport stop without a tape did not stop the recorder.

	- BUGFIX: MCP Python wrapper - an emulator exit surfaced only as a 30 s timeout and the next call silently started a new emulator; now an immediate error, the reason in emu_status (last_exit) and restarted: true on the call that restarts the emulator.

	- DOCS FIX: MCP - emu_cmt_tape_seek does not support single-file tapes (.mzf, .wav).

	- BUGFIX: Cassette CPU Boost - after loading a snapshot the speed did not match the recorder state; tape stop and pause also turned off MAX SPEED chosen by the user; loading a snapshot overwrote the CPU Boost option (and it was saved to the configuration).

	- BUGFIX: MCP - cmt_open reported playing from the request, not the real state (now also state, paused and warning).

	- MCP - bp_list shows the address and bank range (addr_end, addr_match_mode, ...); bp_create_with_init warns about addr_end without RANGE.

	- BUGFIX: PCG editor (MZ-1500) - only characters 0-255 of the 1024 in a bank could be edited.

	- BUGFIX: MCP - io_write and io_read while the emulation was running (also emu_media_run_mzf) stopped the CPU for several minutes and blocked MCP.

	- BUGFIX: CMT hack without GUI (--headless, MCP pipe) blocked the emulation forever (nobody can close the file dialog); now returns Break with a warning.

	- MCP Python wrapper - the MZ800EMU_WORK_DIR environment variable sets the working directory of the started emulator (--work-dir).

	- New feature: video recording (Tools -> Video Recording) on all platforms. Lossless AVI (picture and sound) in emulation time or real time, start/stop Alt+O, pause Alt+Shift+O, markers Alt+L, remote control window Alt+Shift+L, retake via snapshot with no visible seam, presets, export script to MP4 for YouTube. See video-recording.md.

	- MCP - key names from the documentation (CURSOR_*, INST, UP_ARROW, DOWN_ARROW) also work in press_key and release_key; the "Unknown key" error suggests the closest names. CHANGE: send_keys with an unknown key name fails entirely (previously the key was silently skipped).

	- BUGFIX: Without a working audio device the windowed emulation did not start; it now runs without sound in real time and shows a notice.

	- BUGFIX: Headless (--headless, MCP pipe) - the emulation ran at about 1 frame/s, at other times unthrottled; it now runs in real time and the speed can be changed as in the window.

	- BUGFIX: MCP - commands occasionally failed (e.g. "bp_remove failed (unknown id?)") when the emulation thread picked them up late; now waits up to 10 s and a command not executed reports "Emulator busy: ...".

	- BUGFIX: RESET right after the window opened could crash the emulator.

	- BUGFIX: Opening and closing the debugger while running and live memory reads in the Memory Browser could rarely collide with the emulation thread.

	- BUGFIX: After loading a snapshot the emulator could use the RAM mapping from before the load until the next memory mapping change.

	- BUGFIX: Snapshot Setup settings were not loaded after an emulator restart.

	- DOCS FIX: MCP - platform/info returns platform mz700 / mz800 / mz1500; PAL and NTSC are distinguished by tv_system.

2026-07-28 - Released version 2.0.5 - preview

	- The emulator can now be built on macOS as well (guide: docs/build_osx.md). Thanks to Mathias Olsson for the contribution.

	- BUGFIX: macOS - the emulator crashed shortly after start while updating the main window title. (GitHub issue #2)

	- BUGFIX: Debugger - a MEM_W/MEM_R breakpoint incorrectly triggered already when an instruction at the watched address was executed.

	- BUGFIX: Debugger - MEM_W/MEM_R and IORQ breakpoints only worked while the Disassembled window was open. They now work without the Disassembled #1 window open too.

	- Debugger - for a memory-access breakpoint in the memory bank zone (MMEXT_BANK) you can now choose how the entered address is read: either as an address in the CPU view (0000-FFFF), or as an offset within the bank (e.g. 0000-1FFF). The offset within the bank catches an access to that bank regardless of which CPU window the bank is currently mapped into.

	- BUGFIX: Trace Suite - turning recording off (or changing a channel mode) from the menu while emulation was running could crash the emulator. Recording is now started and stopped safely on the emulation thread.

	- CHANGE: Trace-suite recording now has a default size cap of 2 GB per channel (previously unlimited) so a long recording (mainly CPU Track) cannot fill the disk. When reached, the channel stops; the cap is configurable (max_total_mb, 0 = unlimited).

	- BUGFIX: fixed timing in the z80-mz800 CPU core - the CPU executed an interrupt immediately after EI instead of after the following instruction. The bug was introduced in version v2.0.2

	- BUGFIX: In IM 2 mode, when an interrupt that did not originate from the PIO-Z80 arrived, we previously returned the vector 0x00 incorrectly. Now the "bus ghost" value is returned. A minor fix was also added in the I/O Ports window and the Events window. Snapshot: loading a snapshot corrupted the Unicard SD root dir configuration.

	- MCP server - events are now available over TCP as well (previously only over the pipe). Typed breakpoints (MEM_W, MEM_R, IORQ...) can be created. Instruction tracing can be fully controlled over MCP (start/stop/reset/save, with channel selection). MCP tools now always return an error message instead of an empty response on error.

	- BUGFIX: MCP server - sending keys to the emulator now reports whether the keys actually landed. Previously the tool could report success even when the machine did not accept them.

	- Tracing can now be limited to an address range (PC filter).

	- A breakpoint action can run additional commands - control tracing and CDL recording (start/stop/reset/save) and save a snapshot or a memory segment right from the breakpoint (including a continuing one), with a file name template.

	- BUGFIX: MCP server - emu_run now stops emulation deterministically (exactly at the requested frame count). Previously the asynchronous pause stopped it at a variable point, so tracing over MCP could nondeterministically affect timing-sensitive programs.

	- MCP server - the emu_run response now includes a stopped_by field (why the emulation stopped: ran the full frame count, breakpoint, pause or timeout); the complete field is now true only when the full requested frame count was reached.

	- SPEEDUP: The emulation is significantly faster in MAX SPEED mode. Thanks to Z80 core and memory access optimizations it now runs about 42 % faster (up to ~47 % on memory-heavy code). Specifically: a per-step Z80 core variant without the internal register cache (+27 %) and direct (inline) access to plain RAM instead of going through a function pointer (+11.6 % to +15.6 %).

	- BUGFIX: Unicard - the short file name field (8.3 format) in the directory listing and file status contained only a truncated long name instead of a valid 8.3 name for long file names. The emulation now generates the same 8.3 name as a real card.
	  IMPORTANT: it turned out that each Unicard firmware version fills this field DIFFERENTLY - and the emulation now reproduces BOTH variants. Firmware uc1 (MZ800UKP1) preserves letter case (e.g. "seesharp.mzf" stays lowercase); firmware uc3 (Unicard3) uses uppercase only. The emulation picks the correct variant based on the active firmware.

	- BUGFIX: Unicard - the binary directory listing and file status now also faithfully fill the long name field and its length, according to the active firmware (uc1 and uc3 fill these fields differently - on uc1 the long name is sent only for files that actually have one, on uc3 this field carries the primary name). As a result, code tested against the emulator also works on real HW. Firmware uc1 additionally sends a ".." entry in subdirectories (uc3 does not - its manager adds it itself).

	- CHANGE: A bug was found in the Unicard uc3 (Unicard3) firmware - in the binary directory listing it does not fill the long file name (LFN) field. In this point the emulator deliberately behaves CONTRARY to the accurate-emulation principle: it emulates uc3 the way we believe it should behave IF the bug were not there (i.e. filling the LFN correctly). For this reason, uc1 (which is faithful to the real HW) is now the default Unicard firmware for MZ-800.

	- BUGFIX: the main window was not placed at the center of the screen at startup on lower-resolution displays when a startup window size other than "Native" was selected. The window is now centered for all sizes, including after leaving full-screen mode.

	- BUGFIX: MCP server - direct physical memory access (region_read/region_write and the file_load/save_from_region composites) was unreliable in some situations: reading large regions (around 64 KB) over TCP stalled the connection, and region IO failed until the debugger was opened. It now works reliably even for full 64 KB regions and right after startup; on error it returns a clear message instead of an empty response.

	- BUGFIX: On-the-fly reads from the CTC 8253 occasionally returned a wrong value. The bug was introduced in v2.0.2 when the emulation was split into the DBG and HOT paths.


2026-06-14 - Released version 2.0.4 - preview

	- The printer mode switch can now be set to MZ or CENTRONICS. In both modes the printer communication can be logged to a file independently.

	- Added full emulation of the MZ-1P16 plotter. This plotter behaves as connected only while the GUI window with its generated output is open. When the MZ-1P16 plotter window is opened, the printer mode switch is automatically set to the "MZ" standard, and the standard cannot be changed to "CENTRONICS" for as long as the plotter is connected. The printer file capture can still be used even with the plotter connected at the same time.

	- The Z80 PIO can now generate an interrupt from the printer port signals, so hopefully it won't have any undesirable side effects.

	- Added a MAX SPEED benchmark: measures emulation efficiency in MAX SPEED mode (how much real MZ-800 time gets executed per one real second, 100 % = real HW speed). Window via the Emulator -> MAX SPEED Benchmark... menu, the Alt+T key prints the report to the console, Alt+Shift+T resets it. For headless measurement use the --maxspeed-bench option. Measurement is active only in MAX SPEED and excludes pause and blocking operations (CMT hack).

	- Added support for a secondary FDC controller (WD279x) on ports 0x58 - 0x5F (supported by some types of Unicard).

	- Unicard: new "Managed FDC" option (none / FDC0 / FDC1) selects which FDC controller the Unicard API manages when mounting DSK images; the change affects only future operations

	- Debugger: the FDC State window has tabs for both controllers; the I/O Ports window shows the ports of both the standard and secondary controllers

	- Debugger: added device status details for Memory Disks and IDE8 Disks

	- MCP server: FDC media slots now address both the controller and the drive - fdc0_fd0..3 (standard controller) and fdc1_fd0..3 (secondary controller). The original fdc0/fdc1 slots were removed (breaking change for MCP clients)

	- BUGFIX: FDC - after the controller rewrite, the MZ-800 disk BASIC reported "FD1:Unformat error" when listing the directory (DIR); the cause was that during multi-block sector reads the controller signalled Record Not Found at the end of a track permanently, instead of only transiently (one BUSY+RNF status read, then a clean status)

	- BUGFIX: FDC - clicking Cancel in the DSK file browser no longer unmounts the current image (it stays unchanged)

	- BUGFIX: Unicard - the GETCWD command returned a doubled leading slash for subdirectories (//dir)

	- BUGFIX: Debugger Main, Instruction History showed extra bytes for short instructions


2026-06-02 - Released version 2.0.3 - preview

	- New standalone window for disassembling a memory block

	- Debugger: added GDG State panel (video subsystem, raster, palette, PCG)

	- Debugger: added per-chip detail panels (CTC / PPI / Z80 PIO / PSG)

	- Debugger: added PSG Audio Scope window (oscilloscopes, envelope, piano roll, MIDI/CSV export)

	- Debugger: Memory Browser window, Memory Diff

	- all GTK artifacts and legacy have finally been removed from the project

	- MCP server implemented

	- Created a virtual CENTRONIX printer that performs automatic capture to a file

	- Virtual keyboard: added hint with description of PC key for non-intuitively placed keys

	- Breakpoints Window: added Groups section + minor improvements

	- Unicard: the SD root directory can now be changed on the fly while the card is connected (automatic reconnect to the new directory; a non-existent or empty directory is initialized just like at startup)

	- BUGFIX: MZ-700/1500 keyboard - removed TAB and fixed the Virtual Keyboard layout (key colors kept the original MZ-800 ones)

	- BUGFIX: CPU Registers window - the buttons in front of VEC[A/B] and ISR[A/B] had no working right-click menu

	- BUGFIX: Breakpoints - an empty breakpoint list could not be saved

	- BUGFIX: CPU z80-mz800 showed an already incremented regPC during an unfinished HALT

	- BUGFIX: dbgapi: when the CPU is in HALT and regPC is changed manually, it must wake up from HALT (the previous wrong behavior kept waiting for an INT)

	- BUGFIX: keyboard - the ALPHA key now also responds to the second PC backslash key (ISO / Oem102 next to the left Shift; CZ layout has two backslash keys)

	- BUGFIX: Version Check Setup Window - fixed a z-order issue with the Check period combo

	- there were also a few minor corrections in localization


2026-05-21 - Released version 2.0.2 - preview

	- Added main debugger window + IASM + 4 auxiliary disassembled windows, CPU Registers and Memory Map windows, Symbols, Bookmarks, Watch

	- Created a system of "smart" breakpoints + variables and scripting

	- CDL + Memory Heatmap window + CDL export/import

	- Trace suite for offline analytics: CPU track, IORQ Log, Interrupt Log, HW log

	- Stack Monitor, Stack regions analytics, Stack History

	- I/O Ports monitor + tracking history

	- Event log, visualization + analytics and tools

	- Callstack: experimental heuristics

	- CPU profiler

	- Completely rewritten FDC emulation + HW state monitor

	- Completely rewritten QD image emulation + HW state monitor

	- z80ex replaced with our own, faster and more accurate z80-mz800 https://github.com/michalhucik/z80-mz800

	- GDG MZ-800: added some previously undocumented features, see the GDG Documented project https://www.ordoz.com/gdg-documented/
	The only intentionally unimplemented feature remains the Superimpose bit, which would not bring anything fundamental from an emulation standpoint but would unnecessarily complicate the counting of screens by elapsed pxCLK.

	- Unicard: full integration of the complete FS API for firmware uc1 rev.60 and uc3 v0.26 (both versions still use the original QD bootstrap)

	- The project is now officially split into three MZ architectures: MZ-800 / MZ-1500 / MZ-700 (PAL, NTSC).
	The primary architecture remains MZ-800.

	- DSK tools removed: replaced by the standalone MZdisk project https://github.com/michalhucik/mzdisk

	- bugfix: emulator window did not come to the foreground when launched from a console (Windows)

	- bugfix: removed VRAM latch on MZ-1500 (it seems to be implemented only on MZ-800 - unverified)

	- bugfix: loading of the preselected ROM from the configuration file (.ini)
	  the ROM setting was ignored at startup and the default ROM was always loaded

	- comprehensive refactoring of all internal libraries

	- completely rewritten thread communication via dbgapi, EE implementation + many other minor improvements, bugfixes and new bugs

	- upgrade Dear ImGui 1.91.9 WIP -> 1.92.6-docking

	- by default the program is always set to English localization on launch, as this version is usually the best tested

	- project is moved to Github https://github.com/michalhucik/mz800emu - Source code is no longer updated on SourceForge


2026-03-12 - Released version 2.0.1 - preview

	- A young and capable AI assistant has been recruited into the development team :)

	- bugfix: fixed application freeze on exit in Linux

	- Added missing modules from the old version of the emulator:

		- FDC Tools - new FD image
		- Ramdisk: PEZIK Settings
		- Memext: Memory Content
		- Memext: Memory Map Settings
		- ROM: User Settings
		- Keyboard: Autotype
		- JOY: completely new SDL3 interface + UI

	- MZ-800 now experimentally supports adding PSG1 for stereo audio. Port 0xF2 handles
	  both channels simultaneously (mono). Port 0xF3 PSG0 (left), 0xF9 PSG1 (right).

	- development: automated testing section added for selected modules


	i18n Implementation - Localization
	===================================

	- The emulator now has official localization into several selected languages

	- The language is selected by default according to environment variables.
	  In Menu Interface → Language, the setting can be changed.

	- Localization was done automatically and for most languages I am not able to verify correctness


	--------------------------------------------------------------------------
	PLEASE: if you find any errors in the localization (text, formatting, etc.),
	        let me know — we will fix it.
	--------------------------------------------------------------------------


	The emulator is now officially multiplatform for: MZ-800/MZ-1500, with MZ-700 planned.
	=======================================================================================

	- Each platform is generated from the shared source code as a standalone EXE.
	  It is recommended to run each platform in its own working directory.

	- It should be noted that for MZ-1500 I have only done a few basic measurements on real HW,
	  and for most features I rely on verified knowledge gained from MZ-800, so inaccuracies
	  in the emulation may appear.


	Implemented a complete snapshot system for saving and loading the emulator state.
	=================================================================================

	  A snapshot is a ZIP archive with the .mzs extension containing:
	  - manifest.xml with metadata (architecture, version, description, SHA-256 checksum)
	  - XML files with the complete state of all HW components
	  - binary dumps of memories (RAM, VRAM, framebuffer, optionally MEMEXT/ramdisk)
	  - PNG screenshot of the current screen state

	  Saving and loading snapshots:
	  - Menu Snapshot → Save Snapshot Alt + F6 / Load Snapshot Alt + F7 (file dialogs)
	  - The Load dialog includes a preview: screenshot, architecture, date, description, size
	  - The emulator is automatically paused during the operation

	  Quick Save Alt + F8 / Quick Load Alt + F9:
	  - Fast save/load without dialog (from the Snapshot menu)
	  - Three modes: Basic (single file), Incremental (numbered files),
	    Rotational (like Incremental with automatic deletion of the oldest)
	  - Configurable in Snapshot → Snapshot Setup

	  Snapshot Setup dialog:
	  - Default directory for snapshots
	  - ZIP archive compression level
	  - Include ramdisks and memory extension
	  - Quick Save mode and maximum number of slots

	  Saved HW components (19 handlers):
	  - CPU Z80 (all registers including alternate sets)
	  - Memory: RAM, VRAM, EXVRAM/PCG, memory state (mapping)
	  - Video: GDG registers, timing, sync signals, framebuffer
	  - VRAM Control: WF/RF registers (MZ-800), latch (MZ-1500)
	  - Sound: PSG registers (mono and stereo), CTC8253 counters, audio log
	  - I/O: PIO8255, PIO Z80
	  - Devices: CMT (file position), FDC (state + DSK reference),
	    Quick Disk, Ramdisk, IDE8, MEMEXT, Unicard
	  - Control structures: mzarch state, HW configuration

	  Safety and integrity:
	  - SHA-256 checksum protects against archive corruption
	  - Atomic write (temp file + rename) protects existing snapshots
	  - Architecture compatibility check on load (MZ-700/800/1500)
	  - After a failed load, the emulator stays paused (protection against inconsistent state)

	  Status: alpha — basic functionality implemented, tested only in automatic mode.


2025-04-21 - Released version 2.0.0 - preview

	- The emulator core has been reworked, including minor bug fixes. Significant use of
	  multithreading introduced. Noticeable overall performance improvement.

	- Initial integration of localization macros has begun. Future versions of the program may 
	  feature localized GUI. 
	  Any help with translating the GUI text into other languages is welcome.

	- Added support for variable speed control (until now the emulator only ran in NORMAL and MAX speed modes).
	  Speed can now be freely increased or decreased by 1%, 10%, or 100%. Once variable 
	  speed is set, you can freely switch between all three speed modes.

	- Migrated to SDL3. Video and audio interfaces have been completely reworked.
	  MISSING: low-level joystick support

	- Switched from libsoup to libcurl (version_check module) — improves portability on Windows 
	  when distributing as a standalone application with libraries in its own directory 
	  (rather than relying on MSYS2).

	- Migration from GTK3 to ImGui has started.
	  MISSING:
				- FDC Tools
				- Pežik Settings
				- MemExt - Memory Content and Memory Map Settings
				- ROM User Settings
				- Interface - Keyboard Autotype
				- Interface - JOY Settings
				- Debugger, Memory Browser, Breakpoints

	- Preview version released, to be gradually completed with missing modules and 
	  language localizations.

2023-04-28 - Released version 1.0.8

	- Windows - bugfix: upgraded to GTK-3 runtime gtk-3.24.38
	  Among other things, this fixed an error in the display of the topmenu on systems with multiple monitors.
	  The module for checking the latest version of the program now uses SSL.
	  The program can now be compiled in Windows in both 32-bit and 64-bit versions.

	- bugfix: WD279x - command type III read track addr - fixed empty FD

	- bugfix: 4 years ago I accidentally disabled the CMT extension TAP,  no one noticed :(

	- added new topmenu section the Audio, now is posible to setup audio volume for all channels or individualy per channel

	- the default main window rendering scale is now set to Bigger - 150%
	  In the Display section you can now select the startup window size from one of three predefined sizes - 100%, 150% and 300%.

	- virtual CMT now supports motor control via i8255

	  Engine state may by controlled manualy by the "Pause" toggle button in the CMT control pannel.

	  Play / Record + Pause => motor OFF
	  Play / Record         => motor ON

	  If the engine is running and the i8255 sends a signal to stop it, the "Pause" switch is activated.

	  CMT saving: after opening a new file is now switched default to mode "Record + Pause".

	- into CMT menu added option for enable/disable MZF filesize check and fix (default is enabled)


2022-01-27 - Released version 1.0.7

	- added menu option HW compatibility -> MZ-700 mode - fixed 0xE008

	This is a partial HW bugfix for reading regDMD status at address 0xE008 in MZ-700 mode.
	The MZ-800 computer has permanent value '0' on bits 1 to 6. This causes a false identification 
	of the JOY stick on the original MZ-700 games. The option sets these bits to value '1'.


2021-10-27 - Released version 1.0.6


	- bugfix in HW scroll
	- added the ability to assemble project via cmake (thanks Ysblokje) - see cmake_README.md
	- small bugfixes
	- in top menu added experimental option HW compatibility -> MZ-700 (PAL) VRAM timing
	  This option allows slow VRAM read/write acces like real MZ-700 hardware.


2020-08-09 - Released version 1.0.5


	- new function: Auto Type Keyboard
	- BUGFIX: vkbd keybord mapping
	- BUGFIX: added 20ms sleep to the main cycle, when emulator is paused
	- Debugger settings: added options for auto forced full screen refresh
	  (without dependency on beam position)
	  May by called manually by CTRL+R from debugger window.

	- several improvements and bugfixes in the memory browser
	- CMTHACK: added option "Fixing FNAME terminator"
	- bugfix: in "fast" version of CTC0 on MODE2 (Madonna2 demo did not work)
	- bugfix: changed initialization of virtual CMT output sig. (ESC key in Turbo Copy now works)
	- display: added "Lock window aspect ratio" (default off, working only in Windows)
	- display: Alt+W, Alt + H - fix window aspect ratio by width, or by height


2018-09-16 - Released version 1.0.4


	In this released emulator version is integrated a huge amount of bugfixes,
	improvements, features and new bugs, which I gradually collected over the last 
	two years.
	Thanks to some improvements was the emulation be significantly accelerated and  
	this achieved performance was instantly used for the new features, which this 
	slows down a bit :)
	Some peripherals have revealed new secrets and all of that has been integrated 
	into emulation.

	Just in the short:
	
	- virtual CMT now supports a multiple file formats (MZF, MZT, TAP, WAV) and allows 
	  the save into WAV

	- added a virtual keyboard and creation tools for DSK and QD images

	- added a simple simulation of the "Unicard" and IDE8 (supported by NIPOPS cp/m)

	- implemented both types of MemExt (supported by MZIX - Unix)

	- many many improvements in the debugger..., added new memory browser / editor, 
	  memory dissassembler, etc...

	- better synchronisation in the Linux, some changes about ROMs, and lots of other 
	  little things in the different places

	- added online check for new versions
	  Emulator sometimes at the startup checks the my web site and if they discover 
	  a new version of the emulator, then show the information window - this feature 
	  can be turned off and version checks can be performed manually.

	If you want to ask about some emulator features or peripherals of the MZ-800, 
	do not hesitate and ask me on the SourceForge, or by email.


2016-03-01

	Released version 1.0.3

	- bugfix: in the Pezik ramdisk
	- added breakpoints and memory dump viewer
	- added Quick Disk emulation

	- added an additional Sharp ROM's, possible to switch between:

		Standard MZ-800 ROM
		JSS v1.08C - for MR-1R18 compatibile ramdisk
		JSS v1.06A - for the Pezik (0x0e8 - 0x0ef) ramdisk
		WILLY English
		WILLY German
		WILLY Japanese

	- many litle improvements and bugfixes


2015-09-23

	Released version 1.0.2

	- trivial bugfix: locale encoded errors and warning messages in console
        - trivial bugxix: step mode in debugger sometime stepped over multiple lines
	- a little improved emulation speed
        - inline assembler bugfix: fixed instructions with relative
        - inline assembler bug fixed of generating instruction with relative
        - value (JR %, DJNZ %, etc.)



2015-09-20
	
	Released version 1.0.1


	Bugfix:
		- trivial bugfix in memory allocation
		- added loging into error.log
 		- localized file names and paths are now fully supported

        This is tested only in my Czech localization of Windows 7.

        Does it work in other codepages? For example in the Japanese localization of Windows?



2015-09-17

	Released version 1.0


