You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
;; Produces 1 2 3 4 5 6 7 8 9 10 on the stack and exits
|
|
|
|
|
|
|
|
(asm
|
|
|
|
10
|
|
|
|
|
|
|
|
;; 2
|
|
|
|
DUP1
|
|
|
|
1
|
|
|
|
SWAP1
|
|
|
|
SUB
|
|
|
|
DUP1
|
|
|
|
2
|
|
|
|
JUMPI
|
|
|
|
|
|
|
|
;; stack = 1 2 3 4 5 6 7 8 9 10
|
|
|
|
0
|
|
|
|
MSTORE
|
|
|
|
1
|
|
|
|
MSTORE
|
|
|
|
2
|
|
|
|
MSTORE
|
|
|
|
;;3
|
|
|
|
;;MSTORE
|
|
|
|
|
|
|
|
STOP
|
|
|
|
)
|
|
|
|
|
|
|
|
|