MindScuffed

From Esolang
Jump to navigation Jump to search

Mind Scuffed

Mind Scuffed is just an "improved" brainfuck clone

Configurable

Config
Name Function Default
CELL_MAX Max value a cell is allowed to have 255
CELL_SIZE the amount of cells 15


Instructions
Instruction Function
> move pointer to right
< move pointer to left
+ increments cell's value by 1
- decrements cell's value by 1
: sets the cell's value to CELL_MAX
; sets the cell's value to 0
. prints the cell's value
, takes an i32 as user input
[ enters a loop if cell is not zero
] jumps to front of loop
* multiplies the cell's value by the cell right of the current, then sets the cell to the right to 0
/ divides the cell's value by the cell right of the current, then sets the cell to the right to 0
& adds the cell's value to the right of the current cell, then sets the cell to the right to 0
~ sets current cell's value to a random number between 0 and CELL_MAX
\ subtracts the cell's value to the right of the current cell, then sets the cell to the right to 0
l (lowercase L) prints a list of all cell's value's

Example

 ++++++++>++</.l

will output:

 4
 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |

Rust Interpreter

 https://github.com/Bryson-C/BrainFk_interpreter/tree/main/MindScuffed