mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 15:04:23 +00:00
1.0 KiB
1.0 KiB
Brainfuck support for r2
Plugins for brainfuck:
asm.bf
- brainfuck assembler and disassemblerdebug.bf
- debugger using bfvmanal.bf
- code analysis for brainfuckbp.bf
- breakpoints support (experimental)
To debug a brainfuck program:
r2 -D bf bfdbg:///tmp/bf
> dc # continue
> x@scr # show screen buffer contents
The debugger creates virtual sections for code, data, screen and input.
TODO
- add support for comments, ignore invalid instructions as nops
- enhance io and debugger plugins to generate sections and set arch opts
Hello World
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]
>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++
.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.
$ cat << EOF
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.
EOF