- Introduction
- Development Status
- Installation
- Usage
- Supported and Unsupported Features
- File Structure
- License
- Contributing
- Acknowledgements
M5Cardputer C64 Emulator is a project that emulates the Commodore 64, designed specifically for the M5Cardputer device. The project is based on retroelec/T-HMI-C64.
The project is currently under development, and features and functionalities may be updated and improved continuously. Stay tuned for the latest progress and feel free to provide valuable feedback.
To install and run this project, follow these steps:
- Clone this repository:
git clone https://github.com/iele/M5Cardputer-C64-Emulator.git
- Navigate to the project directory:
cd M5Cardputer-C64-Emulator
- Upload the program to the device using PlatformIO:
pio run -t upload
After successfully installing and compiling, upload the program to the M5Cardputer device and run it. The emulator supports BAS (BASIC code) and PRG file formats. Upon startup, you have two options:
Direct to BASIC
: Directly enter the BASIC 2.0 interface.Load from SD
: Load files from the SD card.
BtnA(Button A)
:- Long press: Soft reset to the selection menu.
- Short press: Toggle between keyboard or joystick mode.
Fire
: Mapped to theA
key on the keyboard.Direction keys
: Mapped to theArrow keys
on the keyboard.
BASIC/PRG file execution
.
Based on the T-HMI-C64 project, the following features are currently unsupported or have issues:
- SID chip emulation is not supported.
- Tape/disk drive emulation is not supported.
- VIC register
$d011
is only partially implemented (TODO: bits 3 and 4). - Not all "illegal" opcodes of the 6502 CPU are implemented.
- Some games have graphical errors.
- Some games do not run at all.
Refer to the source code and comments for detailed usage methods and commands.
.vscode/
- Visual Studio Code configuration filesinclude/
- Header fileslib/
- Library filessrc/
- Source code filestest/
- Test code.gitignore
- Git ignore file listLICENSE
- License fileplatformio.ini
- PlatformIO configuration file
This project is licensed under the GPL-3.0 License. See the LICENSE
file for details.
Contributions and issues are welcome. If you have any suggestions or have found a bug, please submit an issue or pull request via GitHub.
Special thanks to the retroelec/T-HMI-C64 project for its support and inspiration.
M5Cardputer C64 Emulator 是一个模拟 Commodore 64 的项目,专为 M5Cardputer 设备设计。该项目基于 retroelec/T-HMI-C64 开发。
当前项目仍然在开发中,功能和特性可能会不断更新和改进。欢迎关注项目的最新进展,并提出宝贵意见。
要安装并运行该项目,请按照以下步骤操作:
- 克隆此仓库:
git clone https://github.com/iele/M5Cardputer-C64-Emulator.git
- 进入项目目录:
cd M5Cardputer-C64-Emulator
- 使用 PlatformIO 上传程序到设备:
pio run -t upload
在成功安装并编译后,将程序上传到 M5Cardputer 设备并运行。该模拟器支持 BAS(BASIC 代码)和 PRG 文件格式,启动后有以下两种选项:
Direct to BASIC
:直接进入 BASIC 2.0 界面。Load from SD
:从 SD 卡加载文件。
BtnA(Button A)
:- 长按:软复位至选择界面。
- 短按:切换键盘或者摇杆模式。
Fire
:映射为键盘上的A
键。方向键
:映射为键盘上的上下左右
键。
BASIC/PRG 文件执行
。
基于 T-HMI-C64 项目,以下功能当前不支持或存在问题:
- 不支持 SID 芯片模拟。
- 不支持磁带/磁盘驱动器模拟。
- VIC 寄存器
$d011
仅部分实现(待办:第 3 和第 4 位)。 - 并未实现 6502 CPU 的全部 "非法" 操作码。
- 一些游戏存在图形错误。
- 一些游戏根本无法运行。
具体使用方法和命令请参考项目的源代码和注释。
.vscode/
- Visual Studio Code 配置文件include/
- 头文件lib/
- 库文件src/
- 源代码文件test/
- 测试代码.gitignore
- Git 忽略文件列表LICENSE
- 许可证文件platformio.ini
- PlatformIO 配置文件
该项目采用 GPL-3.0 许可证。详细条款请参阅 LICENSE
文件。
欢迎贡献代码和提交 issue。如果你有任何建议或发现了问题,请通过 GitHub 提交 issue 或 pull request。
特别感谢 retroelec/T-HMI-C64 项目提供的支持和灵感。
感谢你对 M5Cardputer C64 Emulator 项目的关注和支持!