This is an emulator for the 6502 microprocessor written in C++.
- A C++20 compiler ( e.g. GCC, Clang, MSVC)
- CMake v3.2+
-
Clone the repository
$ git clone https://github.com/Sid110307/6502-Emulator.git
-
Change directory to the repository
$ cd 6502-Emulator
-
Configure the project using CMake (only on the first build)
$ cmake -S . -B bin
-
Build the project
$ cmake --build bin --target all -j4
-
Run the emulator
$ ./bin/6502
$ ./bin/6502 <path/to/program.bin>
- Note: Don't forget to change the clock cycles at the
cpu.execute()
call. - Build and run the emulator as described above.