Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.01 KB

File metadata and controls

52 lines (34 loc) · 1.01 KB

ksmc

A rust-based, assembler, disassembler, and compiler for kOS - a scripting mod for Kerbal Space Program.

Features

  • Assembler & Disassembler for .ksm (kOS machine code) binaries
  • Compiler from high-level code to kerboscipt bytecode

Building

developed using Rust 1.91

git clone https://github.com/<your-username>/ksmc.git
cd ksmc
cargo build --release

Usage

Assemble a .ksm binary:

./target/release/ksmc input.kasm -o output.ksm

Disassemble a .ksm binary:

./target/release/ksmc input.ksm -o output.kasm --dump

look at src/main.rs for further info

License

Licensed under MIT License

Roadmap

  • symbol resolver prelude
  • minimal working compiler
  • pointers (needs extension of kOS)
  • expansive type system
  • optimization passes
  • compiler safety options

NOTE

This project is not affiliated with the official kOS team. It’s an independent project for learning and personal interest.