https://github.com/grant0417/emu6502
6052 CPU emulator written in Rust
https://github.com/grant0417/emu6502
6502 6502-processor rust
Last synced: 6 months ago
JSON representation
6052 CPU emulator written in Rust
- Host: GitHub
- URL: https://github.com/grant0417/emu6502
- Owner: grant0417
- License: mit
- Created: 2020-04-02T21:21:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-02T22:37:03.000Z (over 5 years ago)
- Last Synced: 2025-09-30T03:32:48.224Z (6 months ago)
- Topics: 6502, 6502-processor, rust
- Language: Rust
- Size: 12.7 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EMU6502
[Link to Assembler](https://github.com/grant0417/assembler6502)
Current Features
* Reads roms from hex and binary files
* Steppable execution
* Full introspection of programs
* Cycle accurate
Current Limitations
* Decimal mode is not implemented (similar to NES)
* Interrupts are not fully implemented (hardware)
Each CPU component can be printed using the Debug trait here is
and example of printing the cpu, cpu.reg, and cpu.mem:
```
Currently executing: 70 BVS $03 Cycles remaining: 1
a: 0x08 x: 0x05 y: 0x00 s: 0x00 pc: 0x000D SV-BDIZC
00001000 00000101 00000000 00000000 0000000000001101 00110100
0000: 4C 10 00 65 FE A6 FD 86 FE 85 FD 70 03 4C 03 00 L..e.......p.L..
0010: 18 A9 01 85 FE A9 00 85 FD 4C 03 00 00 00 00 00 .........L......
0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 08 05 00 ................
```