Giter VIP home page Giter VIP logo

crypticos's Introduction

World's Smallest Operating System

CrypticOS is an operating system mostly written in a custom bytecode, which can be emulated anywhere.

Design

  1. Any program should be loaded on any emulator, and run perfectly.
  2. X86 bootable should be usable within 256 bytes.
  3. "Make it simple, and keep it simple"

Huh??

  • Yes, this is a hobby project, mainly for keeping me sane in 2020/2021 during the lockdowns.
  • Yeah, it sucks. It's way worse than DOS and runs on an obscure BrainFuck clone.
  • The custom bytecode has 16 commands. It's mostly BrainFuck, but with some extra things that make it easier to write operating systems with (insane idea)
  • That being said, I recommend you don't make another BrainFuck clone. You'd be better off making another memory-safe general-purpose systems programming language, and rewrite every major piece of software in it.

Goals

  • Write OS in <512 bytes
  • Write simple programs for it
  • Write assembler that compiles to it (casm)
  • Write operating environment in the assembler
  • Self host the assembler or make a C compiler

Building

Install CASM assembler (for main test binary)

make b_casm

Note: Make sure you are in the x86 directory.

Main test binary

sudo apt install qemu-system-x86 nasm
make b_x86

Try: !%***.
Also try !% to load the edit app. Press ESC to exit.

256 byte Version

Very basic. Type !%***. and enter to test it out.

cd x86 && make tiny

So what does it do?

CrypticOS uses a BrainF* inspired esoteric language as its main runtime.
It is different in many ways, mainly with logic and loops. In design it should
have the simplicity of BrainF*, but be more usable, efficient, and Assembly-like.

You can see the full specification in standard/

crypticos's People

Contributors

petabyt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

crypticos's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.