Git Product home page Git Product logo

pixie's Introduction

Pixie is a 16-bit word-addressable register VM with 7 registers, 16 op codes, and 128 KB of memory, with port-mapped I/O.

Dust is an assembler for the VM.

A program which counts down from 10, outputs numbers, then terminates:

# Countdown from 10
    mov r0 10
REPEAT:
    out r0 0
    sub r0 1
    jnz r0 :REPEAT
# Pixie terminates when PC is at 0xFFFF
    jnz 1 0xFFFF  

Assemble:

dust.py countdown.dust countdown.pixie

Run:

pixie countdown.pixie

Output:

10987654321

For a more complex example, check out the Brainfuck interpreter here.

This project serves no practical purposes (see Turing tarpit) and was not thoroughly tested. For more details, check out the wiki.

pixie's People

Contributors

vladris avatar skx avatar

Stargazers

LightslicerGP avatar Qaziquza avatar Michael Hughes avatar  avatar Phil Smith avatar M avatar GAURAV avatar  avatar Nadeem Shaikh avatar Андрей avatar Ian Seyler avatar  avatar  avatar Márk Bartos avatar Ben Turrubiates avatar Simon Racz avatar sl avatar Suhail Dawood avatar Lin avatar Vikrant Sagar avatar Homen Simpsor avatar Marc Laugharn avatar

Watchers

James Cloos avatar  avatar Homen Simpsor avatar  avatar

Forkers

hbcbh1999 icodein

pixie's Issues

Build on Linux

  • Build VM code on Linux
  • Make test.py cross-plat

Once the above are done, consider onboarding Travis CI

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.