2026-11-28

Commodore 64 Emulator v0.8.9.1-alpha

Commodore 64 Emulator v0.8.9.1-alpha is released. A Commodore 64 emulator written in modern C++, built with SDL2 and designed around two priorities:Accuracy-first emulation (with a strong focus on real hardware behavior over “good enough” hacks); Debuggability (integrated monitor, break/watchpoints, and visibility into what the machine is doing). This project is actively under development; expect rough edges and incomplete features.

Commodore 64 Emulator Changelog:
This release introduces significant advancements in disk drive emulation, peripheral hardware architecture, debugging capabilities, save-state support, and disk image reliability.
One of the largest additions in this release is the introduction of Commodore 4040 dual-drive emulation, accompanied by a redesigned hardware discovery interface that provides a more consistent and extensible foundation for existing and future peripheral devices.
New Features
Commodore 4040 Disk Drive Emulation
Introduced support for the Commodore 4040 dual-mechanism IEEE-488 disk drive.
Dual-CPU emulation utilizing the MOS 6502 and MOS 6504 processors.
Independent floppy drive mechanisms.
MOS 6532 RIOT and MOS 6530 RRIOT chip emulation.
IEEE-488 communication and handshake processing.
Independent disk mounting and ejection for each mechanism.
D64 disk image support.
GCR track generation, decoding, reading, and writing.
GCR sector writeback and disk image persistence.
Controller-driven GCR density selection.
Rotational disk positioning and head movement.
Realistic motor spin-down behavior.
Independent mechanism activity LEDs driven by RIOT2 outputs.
Individual track and sector displays for both mechanisms.
Dual-CPU and floppy mechanism save-state support.
Configurable 4040 DOS and FDC ROM files.
Drive Hardware Architecture
Introduced a redesigned, extensible drive hardware discovery and execution framework.
New DriveHardware interface for hardware discovery and inspection.
Drive-owned CPU execution and instruction stepping.
Hardware-independent access to drive components.
Support for multiple processors and disk mechanisms within a single peripheral.
Removed legacy chip accessors and hardware presence flags.
Consolidated shared VIA save-state functionality into the base drive class.
Integrated the new hardware framework across supported disk drives:
Commodore 1541
Commodore 1571
Commodore 1581
Commodore 2031
Commodore 4040
These architectural improvements provide a foundation for additional peripheral emulation while reducing hardware-specific dependencies throughout the emulator.
Machine Language Monitor Improvements
The Machine Language Monitor has been significantly expanded to support hardware-independent debugging and more advanced peripheral inspection.
Hardware discovery and component enumeration.
Drive-specific CPU execution contexts.
Dual-CPU debugging for the Commodore 4040.
CPU-specific breakpoints.
CPU-specific step-over functionality.
Drive-owned instruction stepping with hardware cycle updates.
Hardware-independent VIA inspection.
CIA and FDC hardware inspection.
MOS 6532 RIOT and MOS 6530 RRIOT inspection.
Floppy mechanism hardware inspection.
Multi-mechanism disk management and monitoring.
Hardware-independent mechanism debugging.
Preservation of hardware component names.
These improvements allow the monitor to interact with different drive architectures without requiring dedicated debugging implementations for every peripheral.
User Interface Improvements
Added support for attaching the Commodore 4040 when IEEE-488 is available.
Added mechanism-aware disk mounting and ejection.
Added individual disk status and eject controls for each mechanism.
Added a Reset Drive menu option.
Added a Detach Drive menu option.
Added independent activity indicators for dual-mechanism drives.
Added individual track and sector displays for the Commodore 4040.
Updated disk management to utilize shared mechanism interfaces.
Save-State Improvements
Expanded save-state coverage for peripheral devices and improved the reliability of hardware and media restoration.
Added IEEE-488 bus save/load state support.
Added Commodore 4040 dual-CPU save-state support.
Added independent floppy mechanism state preservation.
Added multi-mechanism media restoration.
Consolidated shared VIA state serialization.
Added missing disk drive state restoration handlers.
Updated restoration ordering to restore drive media before hardware state.
Improved disk image protection during save-state restoration.
Disk Image Protection and Reliability
Introduced additional safeguards to reduce the risk of disk image corruption and data loss.
Added disk write failure detection across supported drive models.
Introduced tryFlushAndSaveDisk() to prevent unsafe disk ejection.
Prevented disk ejection when pending changes cannot be saved.
Improved disk image protection during media replacement.
Improved disk image protection during drive removal.
Improved disk image protection during emulator shutdown.
Preserved modified GCR tracks during head movement, track rebuilds, and media changes.
Improved handling of pending disk writes.
Corrected drive reset behavior to prevent unintended disk removal.
Performance Improvements
Optimized PLA memory bank resolution using a cached lookup table.
Reduced dependencies on legacy drive hardware interfaces.
Consolidated shared disk drive functionality.
Bug Fixes
Fixed IEEE-488 NDAC talker handshake deadlocks.
Corrected IEEE-488 NRFD handshake polarity during ATN.
Corrected IEEE-488 cartridge shutdown ordering.
Improved Commodore 4040 CPU cycle balancing.
Corrected Commodore 4040 reset sequencing.
Fixed stale VIA CA1 interrupts during GCR synchronization.
Corrected GCR read/write mode handling.
Improved Commodore 4040 head stepping and track invalidation.
Added missing FDC stack memory mirroring.
Fixed incorrect Commodore 4040 ROM configuration handling.
Fixed Commodore 4040 memory peek behavior.
Fixed Commodore 1541 and 2031 resets unintentionally unloading mounted disks.
Expanded IRQ source handling to utilize 32-bit values.
Resolved various source file casing and include issues.
Internal Architecture and Code Improvements
Encapsulated Commodore 4040 floppy mechanism state and GCR processing.
Improved separation of drive CPU, memory, bus, and peripheral hardware responsibilities.
Standardized disk mounting through shared mechanism interfaces.
Improved multi-mechanism peripheral management.
Removed obsolete hardware-specific dependencies.
Improved the overall maintainability and extensibility of the peripheral emulation subsystem.
Alpha Release Notice
This release remains under active development. Although significant progress has been made in disk drive emulation, debugging, and state management, users may encounter compatibility issues, unexpected behavior, or incomplete hardware functionality.
Commodore 4040 emulation is a newly introduced feature and should be considered experimental.
Users are encouraged to maintain backups of important disk images and report any issues encountered through the GitHub Issues page.
Thank you to everyone who continues to test, support, and follow the development of this emulator.

Download: Commodore 64 Emulator v0.8.9.1-alpha
Source: Here

0 Comments

Post a Comment