A simple assembler for the Brookshear Machine
  • Rust 74.9%
  • HTML 15.3%
  • TypeScript 6.9%
  • Assembly 1.5%
  • Just 1.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-29 18:16:39 +02:00
.vscode Initial commit 2026-09-12 12:31:18 +02:00
brookshearasm Enable multiple errors 2026-09-29 18:11:44 +02:00
libbrookshear Enable multiple errors 2026-09-29 18:11:44 +02:00
web Enable multiple errors 2026-09-29 18:11:44 +02:00
.gitignore Add WebAssembly support 2026-09-26 00:28:00 +02:00
assembler.ts Add WebAssembly support 2026-09-26 00:28:00 +02:00
Cargo.lock Add codemirror and webpack 2026-09-28 09:55:44 +02:00
Cargo.toml Add WebAssembly support 2026-09-26 00:28:00 +02:00
fibbonacci.asm Start fibbonacci with 2 one's 2026-09-16 17:32:04 +02:00
GRAMMAR.md Enable multiple errors 2026-09-29 18:11:44 +02:00
Justfile Enable multiple errors 2026-09-29 18:11:44 +02:00
README.md Update readme 2026-09-28 10:59:48 +02:00
swap.asm Initial commit 2026-09-12 12:31:18 +02:00

Brookshear Assembler

A simple assembler for the Brookshear Machine in Rust.

Compile and run with cargo:

cargo run [input]

Where input is a file containing assembly instructions. See fibbonacci.asm for an example.

The grammar and instruction set can be found in GRAMMAR.md.

The output is a string of hexadecimal digits which can be imported into this Brookshear Machine emulator.

Web version

A web version of the assembler can be found at brookshear.meeps.dev.