Console-based REPL Implementation - Use Jump table dispatch for execution - RLE preprocessing as optimization - Buffered output to minimize redraw - File loading support via run command - Add REPL commands: help, run, clear, reset, exit - Two implementation: bf_shell_interp.asm, bf_console_interp.asm This is my first contribution to KolibriOS for GSOC 2026 WASM runtime project preparation
17 lines
461 B
Brainfuck
17 lines
461 B
Brainfuck
>+ Set c1 = 1
|
|
>++ Set c2 = 2
|
|
|
|
<
|
|
[->+<] Add the value of c1 to c2 and print c2
|
|
|
|
>
|
|
++++++++ ++++++++ ++++++++ ++++++++ ++++++++ ++++++++.
|
|
|
|
> Print c3 which is supposed to be zero
|
|
++++++++ ++++++++ ++++++++ ++++++++ ++++++++ ++++++++.
|
|
[-]
|
|
|
|
[-<+>] Add the value of c3 (which is 0) to c2
|
|
|
|
<+. Increment c2 and print it again
|