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.
29 lines
231 B
29 lines
231 B
10 years ago
|
;; Produces 1 2 3 4 5 6 7 8 9 10 on the stack and exits
|
||
|
|
||
|
(asm
|
||
|
10
|
||
|
|
||
|
;; 2
|
||
|
DUP1
|
||
|
1
|
||
|
SWAP
|
||
|
SUB
|
||
|
DUP
|
||
|
2
|
||
|
JUMPI
|
||
|
|
||
|
;; stack = 1 2 3 4 5 6 7 8 9 10
|
||
|
;;0
|
||
|
;;MSTORE
|
||
|
;;1
|
||
|
;;MSTORE
|
||
|
;;2
|
||
|
;;MSTORE
|
||
|
;;3
|
||
|
;;MSTORE
|
||
|
|
||
|
STOP
|
||
|
)
|
||
|
|
||
|
|