Skip to content

Commit 5ae3023

Browse files
committed
feat(assembly) Added basic assembly tests for encoding.
1 parent c2e2128 commit 5ae3023

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/assembly/add.asm

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
increment:
2+
inc r1
3+
add r1+1, r1, r1
4+
5+
arithmetic:
6+
; multiply and add. r1=1; r1*=1; r1+=r1+1.
7+
inc r1
8+
mul r1, r1, r0+1
9+
add r1, r1, r1+1

0 commit comments

Comments
 (0)