Using zig [LLVM 20] + LLVM-MOS-SDK on some examples
This repository contains examples showcasing the usage of the Zig programming language with the LLVM-MOS backend in the Zig toolchain version 0.14.0-dev (LLVM 20). These examples aim to provide a comprehensive reference for developers interested in leveraging Zig for MOS 6502-based development.
To build and run these examples, ensure you have the Zig toolchain version 0.14.0-dev + LLVM-MOS-SDK installed.
Clone this repository:
git clone https://github.com/kassane/zig-mos-examples.git
cd zig-mos-examples
Choose the example to be built and have fun.
These examples draw inspiration from various sources:
- LLVM-MOS-SDK Examples: Borrowing concepts and methodologies from the official LLVM-MOS-SDK examples, adapt them to showcase Zig's capabilities.
- Nesdoug (LLVM-MOS compat) Tutorial: Leveraging insights and techniques from the Nesdoug tutorial, provide Zig-specific implementations for MOS 6502 development.
- Rust-MOS Examples: Explore similar use cases and approaches in Zig for MOS 6502 development.
Contributions to this repository are welcome! Whether it's fixing bugs, adding new examples, or improving existing ones, your contributions help make this resource more valuable to the community. Please refer to the CONTRIBUTING.md file for guidelines on how to contribute.
This repository is licensed under the APACHE 2.0 License. See the LICENSE file for details.
These examples are provided for educational and illustrative purposes. While efforts have been made to ensure accuracy and reliability, they may not be suitable for production use without further validation and testing. Use at your own risk.