Code Monkey home page Code Monkey logo

b2's Introduction

B2

A balanced quinary computer emulator

B2 is a high-efficiency remake of a project I made in 2021, because present (and future?) me is smarter than past me.

Table of contents

Aims of B2

  • Use C instead of C# for better portability and efficiency.
  • Just use the standard output because a GUI is super hard to make crossplatform and it barely works anyway.
  • Use ports so constant input is possible.
  • Design a better logic system - B2 shouldn't rely on maths outside of its own logic gates.

Usage

Installation

B2 depends on the following programs:

  • gcc
  • make

Windows

  • Open Powershell.
  • Run Set-ExecutionPolicy Bypass -Scope Process. This allows local .ps1 files to be run.
  • Navigate to the setup directory and run ./setup-windows.ps1.

Linux

Navigate to the setup directory and run ./setup-distro.sh, replacing distro with whatever base distribution your linux machine runs on.

Compilation

Compiling B2 is super easy - just run make in this directory and the necessary makefile will be run, thus compiling your program. Please note that running make by itself will also run the program immediately after compiling - to avoid this behaviour, run make build instead.

Pull Requests

Any pull requests would be much appreciated and will be merged ASAP. :)

If you are committing any changes, follow the rules below:

  • Ensure that any changes you make are well-tested and that you don't depend on any quirks of your operating system - this is a cross-platform project after all.
  • Stick to C. I really cannot be bothered with having to add extra compilers to the toolchain and if I could make the first version in C#, we can do it in C. (But feel free to invite me to your own port written in some other language :P)
  • Comment your code, it's good practice for you and makes it less of a pain for others to understand.
  • Follow the style guide. If in doubt, just look at how I've done it.

b2's People

Contributors

somecollagist avatar

Watchers

 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.