-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# zForth for radare2 | ||
|
||
zforth is a minimalistic implementation of Forth that aims to be easy | ||
to embed, simple and portable. | ||
|
||
This plugin exposes the forth interpreter to be used with radare2. | ||
|
||
Enter the zforth repl. | ||
|
||
``` | ||
$ r2 -c '#!zforth' - | ||
``` | ||
|
||
## Simple programs | ||
|
||
``` | ||
1 3 + . 10 0 sys ( 10 0 sys is the same as printing \n char to stdout ) | ||
``` | ||
|
||
## Using the r2cmd syscall | ||
|
||
``` | ||
s" ?E Hello World " r2cmd tell nl | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters