/6502-Emulator

This is an emulator for the 6502 microprocessor written in C++.

Primary LanguageC++MIT LicenseMIT

6502 Emulator in C++

This is an emulator for the 6502 microprocessor written in C++.

Getting Started

Prerequisites

Getting the Source

  • Clone the repository

    $ git clone https://github.com/Sid110307/6502-Emulator.git
  • Change directory to the repository

      $ cd 6502-Emulator

Building

  • 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

Usage

$ ./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.

License

MIT