GithubHelp home page GithubHelp logo

lirc572 / ti-brainfck Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 15 KB

a brainfck interpreter for ti graphic calculators

License: GNU General Public License v3.0

Brainfuck 100.00%
ti-basic ti-calculator ti-84-plus-ce ti-84 ti-84-plus-c-silver-edition brainfuck-interpreter brainfuck

ti-brainfck's Introduction

ti-brainfck (v1.0.0)

a brainfuck interpreter in ti-basic

Key Function
LN [
STO ]
4 >
1 <
5 +
2 -
6 .
3 ,
ENTER Newline
(-) Run
  • ti-brainfck (v1.0.0) has successfully interpreted the hello-world bf program.
  • ti-brainfck (v1.0.0) may (probably) have some bugs.
  • Bug fixes and new features will come out in the next version.
  • More detailed docs will be included in the next version.

How To Install:

Interpreter:

  • Download BFITPT.8xp to your GC (Ti-84 Plus C SE / Ti-84 Plus CE / ...).
  • Edit brainfck source code(Str0)
  • Run it.

Editor:

  • Download EDITOR.8xp to your GC (Ti-84 Plus C SE / Ti-84 Plus CE / ...).
  • Run it.

Features:

  • Automatically add new line when reaching the end of a line.
  • ClrHome when newline is needed at the last line of the screen.
  • Memory currently contains 900 cells and the maximum depth of loop allowed is 400, due to constraints of the GC.
  • Memory is wrapped on overflow and underflow (Cell(-1)=Cell(900), Cell(901)=Cell(1)).
  • Only the 8 command chars are allowed to be in the source.
  • Cells are emulated as to be 8-bit (0-255).
  • Use ASCII printable characters as input/output.
  • Currently only allows numbers and ALPHA characters(excluding theta and SOlVE) as input.
  • Type capital letters by pressing 'ALPHA' key followed by the letter keys.
  • Type numbers by directly pressing the number keys.
  • " sign is always automatically replaced by ' sign because GC does not allow the use of " in string variables.
    • Both "(ASCII:34) and '(ASCII:39) are shown as ' in output.
    • " ("ALPHA" + "+") is converted to 34 in input.
  • \ sign is always automatically replaced by / sign due to constraints of the GC.

Todos:

  • Add line buffer so as to move all lines up instead of clrhome when reaching the last line.
  • When editting source code:
    • Allow non-command chars as comment (which are ignored by the interpreter) (is it necessary?)
  • Translate newline to 10 on input, and 10 to newline on output
  • Display instructions at the start (to be added when all functions are complete)
  • Show cursor when waiting for input

  • BRAINFCK.8xg is the project file (can be used in SourceCoder3).
  • BFITPT.8xp is the program file of the interpreter.
  • Str0.8xs is a hello-world bf program.
  • EDITOR.8xp is the program file for the editor.

ti-brainfck's People

Stargazers

 avatar  avatar  avatar  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.