forked from MightyPork/crsn
stacks example
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
(
|
||||||
|
(stack r0)
|
||||||
|
|
||||||
|
(push @r0 1)
|
||||||
|
(push @r0 2)
|
||||||
|
|
||||||
|
(pop r1 @r0)
|
||||||
|
(cmp r1 2 (ne? (fault)))
|
||||||
|
|
||||||
|
(pop r1 @r0)
|
||||||
|
(cmp r1 1 (ne? (fault)))
|
||||||
|
|
||||||
|
(drop @r0)
|
||||||
|
(halt)
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user