Coder Social home page Coder Social logo

zshift / chungus-2-assembler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sammyuri/chungus-2-assembler

0.0 2.0 0.0 120 KB

Assembler and example programs for the CHUNGUS 2 Minecraft CPU.

License: MIT License

Python 23.28% Assembly 76.72%

chungus-2-assembler's Introduction

CHUNGUS 2 Assembler

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/FDiapbD0Xfg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

The CHUNGUS 2 Assembler compiles assembly files into importable data for the CHUNGUS 2 Minecraft computer.

Setup

Python and pip are required to run the assembler. Head to the Python Downloads page to install the correct python for your system.

Install the required dependencies at the root of the repository using a terminal emulator (eg, Terminal in macOS, PowerShell in Windows).

> pip install -r requirements.txt

Running

Run the following from the root of the repository.

python assembler.py

This will show the following output:

Enter a file path: 

You must enter a path relative to your current directory. To use the breakout game as an example, type the following:

Enter a file path: saves/breakout.s

The result will be a new file added in the same directory with the name breakout_CHUNGUS2.schem. For general usage, passing in path\to\<assembly>.s will generate path\to\<assembly>_CHUNGUS.schem.

Importing into Minecraft

TODO

chungus-2-assembler's People

Contributors

sammyuri avatar zshift avatar

Watchers

 avatar  avatar

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.