Skip to content

Commit

Permalink
simple readme
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed Oct 6, 2023
1 parent b01fa47 commit 9f81cdb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ChaiVM - Virtual machine for chai bytecode.
## How to build:
```shell
$ make build
```
## How to use
```shell
$ build/chai <app.chai>
```
### Chai bytecode currently is just a Sequence of instructions.
For instance, there is disassembler of simple app.chai
```
Mov 6 r2
Mov 8 r3
Ldra r3
Mul r2
Print acc
Mov o ro
Ret;
```
Where Ret returns exit code `r0`.
This script compiled to chai-bytecode should print "0", because '0' == 48.

0 comments on commit 9f81cdb

Please sign in to comment.