This is a simple emulator for the 6502 CPU written in C. The emulator allows you to run programs written for the 6502 architecture on modern systems.
- Accurate emulation of the 6502 CPU, including all official instructions and addressing modes.
- Support for common hardware devices such as RAM and ROM.
- Ability to load and execute binary programs written for the 6502.
To build and run the emulator, you'll need the following:
- CMake (version 3.22.1 or higher)
- A C compiler compatible with the C99 standard.
- A Linux System.
- Basic knowledge of the C programming language.
To build the emulator using CMake, follow these steps:
- Clone the repository or download the source code.
- Navigate to the project directory.
- Open a terminal or command prompt in the project directory.
- Create a build directory:
mkdir build
- Build the project
cmake -B ./build -S ./
- Go to build directory:
make all
This will generate the executable file for the emulator.
To use the emulator, execute the generated binary from the command line. The following options are available:
./c6502 <filename>
: Load a binary program into memory.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on the project's GitHub repository.
This project is licensed under the MIT License.
If you have any questions or need further assistance, feel free to reach out to the project maintainer at [email protected]
.