A simple 6502 assembler written in Rust
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tromino 9b9df4ebb3 Update README.md with more information 4 months ago
src Add remaining instructions (closes #3) 4 months ago
.gitignore Set up a basic Rust project 8 months ago
Cargo.lock Get a barebones assembler running 8 months ago
Cargo.toml Add license 4 months ago
LICENSE.md Add license 4 months ago
README.md Update README.md with more information 4 months ago



The most awesomest 6502 assembler you've ever seen in your life!

nyasm is a toy 6502 assembler I made in order to learn Rust. It's currently pretty early on and there will probably be breaking changes in the future. Right now it's in a state where it can successfully assemble a valid NES ROM file, although some features might still be incomplete or missing entirely (including external binary files is possible now, but including other assembly files isn't for example).


nyasm can be built using cargo:

cargo build --release

The resulting binary will appear at target/release/nyasm.


To assemble a file using nyasm, give the input and output filenames to the nyasm binary like this:

nyasm input.asm -o output.nes

You can also pipe data into and out of the assembler without accessing the filesystem directly:

nyasm < input.asm > output.nes