Skip to content

DigitalCodeCrafter/ksmc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An assembler, disassembler for kRISC, as well as a compiler for a language to replace kerboscript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages