Skip to content
/ c6502 Public

Emulator/Decompiler for the 6502 CPU written in C

License

Notifications You must be signed in to change notification settings

lvntky/c6502

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c6502 | 6502 CPU Emulator

Codacy Badge

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.

Features

  • 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.

Requirements

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.

Building the Emulator

To build the emulator using CMake, follow these steps:

  1. Clone the repository or download the source code.
  2. Navigate to the project directory.
  3. Open a terminal or command prompt in the project directory.
  4. Create a build directory: mkdir build
  5. Build the project cmake -B ./build -S ./
  6. Go to build directory: make all

This will generate the executable file for the emulator.

Usage

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.

Contributing

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.

License

This project is licensed under the MIT License.

Acknowledgments

Contact

If you have any questions or need further assistance, feel free to reach out to the project maintainer at [email protected].

About

Emulator/Decompiler for the 6502 CPU written in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published