sway/scripts/mdbook-forc-documenter/examples/forc_parse-bytecode.md
John Adler fddb2067dd
Create markdown-lint.yml (#2534)
* Create markdown-lint.yml

* Fix lint errors.
2022-08-15 12:45:07 -04:00

30 lines
1,012 B
Markdown

<!-- markdownlint-disable MD041 -->
## EXAMPLE
We can try this command with the initial project created using `forc init`, with the counter template:
```sh
forc new --template counter counter
cd counter
forc build -o obj
```
```console
counter$ forc parse-bytecode obj
half-word byte op raw notes
0 0 JI(4) 90 00 00 04 conditionally jumps to byte 16
1 4 NOOP 47 00 00 00
2 8 Undefined 00 00 00 00 data section offset lo (0)
3 12 Undefined 00 00 00 c8 data section offset hi (200)
4 16 LW(63, 12, 1) 5d fc c0 01
5 20 ADD(63, 63, 12) 10 ff f3 00
...
...
...
60 240 Undefined 00 00 00 00
61 244 Undefined fa f9 0d d3
62 248 Undefined 00 00 00 00
63 252 Undefined 00 00 00 c8
```