Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.55 KB

File metadata and controls

52 lines (42 loc) · 1.55 KB

Brainfuck Extended

Example Programs

    This program's purpose is to test whether or not a brainfuck interpreter/compiler has any bugs or errors. Its is commented and does not use any Brainfuck-Extended features such as scratch memory or comments. It tests to make sure that loops work correctly, that the cell pointer cannot go behind the first cell, and that negative numbers don't exist.

Expected output:

00
0
0

    This program's purpose is to test the capabilities of the new brainfuck interpreter.

Expected output:

00

Bad outputs:

Comments Not Working?

100

Anything other than two characters being printed means comments didn't work...
Scratch Memory Not Working?

50

Return-to-0 Operator Not Working?

01

    Reads input from the terminal until a newline is entered. Then, prints it back out.

    Not yet written. Will check what size of integers work. I.E. are numbers 8, 16, 32, or 64 bit?

    Runs the modulus of 17 and 5. Returns 2. It's a proof-of-concept and can be loaded with any numbers in the first and second cells.

    Raises 2 to the power of 24.