Paweł Bylica
10 years ago
15 changed files with 0 additions and 163 deletions
@ -1 +0,0 @@ |
|||
60646107b760271460005560006001f2 |
@ -1,12 +0,0 @@ |
|||
;; Should return (1975 + 39) `mod` 100 = 14 = 0x0e |
|||
(asm |
|||
100 |
|||
1975 |
|||
39 |
|||
ADDMOD |
|||
0 |
|||
MSTORE8 |
|||
0 |
|||
1 |
|||
RETURN |
|||
) |
@ -1 +0,0 @@ |
|||
60016001900160070260050160029004600490066021900560150160030260059007600303600960110860005460086000f2 |
@ -1,37 +0,0 @@ |
|||
|
|||
(asm |
|||
1 |
|||
1 |
|||
SWAP1 |
|||
ADD ;; 2 |
|||
7 |
|||
MUL ;; 14 |
|||
5 |
|||
ADD ;; 19 |
|||
2 |
|||
SWAP1 |
|||
DIV ;; 9 |
|||
4 |
|||
SWAP1 |
|||
MOD ;; 1 |
|||
33 |
|||
SWAP1 |
|||
SDIV;; 0 |
|||
21 |
|||
ADD ;; 21 |
|||
3 |
|||
MUL ;; 63 |
|||
5 |
|||
SWAP1 |
|||
SMOD;; 3 |
|||
3 |
|||
SUB ;; 0 |
|||
9 |
|||
17 |
|||
EXP ;; 17^9 |
|||
0 |
|||
MSTORE |
|||
8 |
|||
0 |
|||
RETURN |
|||
) |
@ -1 +0,0 @@ |
|||
6201e2406000546000530960005460206000f2 |
@ -1,14 +0,0 @@ |
|||
|
|||
(asm |
|||
123456 |
|||
0 |
|||
MSTORE |
|||
0 |
|||
MLOAD |
|||
BNOT |
|||
0 |
|||
MSTORE |
|||
32 |
|||
0 |
|||
RETURN |
|||
) |
@ -1 +0,0 @@ |
|||
60027ffedcba9876543210fedcba9876543210fedcba9876543210fedcba98765432100460005460206000f2 |
@ -1,10 +0,0 @@ |
|||
(asm |
|||
0x2 |
|||
0xfedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210 |
|||
DIV |
|||
0 |
|||
MSTORE |
|||
32 |
|||
0 |
|||
RETURN |
|||
) |
@ -1 +0,0 @@ |
|||
60016001818101818101818101818101818101818101818101818101818101818101818101818101818101818101818101818101818101 |
@ -1,57 +0,0 @@ |
|||
;; Fibbonacci unrolled |
|||
|
|||
(asm |
|||
1 |
|||
1 |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
DUP2 |
|||
DUP2 |
|||
ADD |
|||
) |
@ -1 +0,0 @@ |
|||
7001234567890abcdef0fedcba09876543217001234567890abcdef0fedcba09876543217001234567890abcdef0fedcba0987654321020260005460206000f2 |
@ -1,13 +0,0 @@ |
|||
(asm |
|||
0x1234567890abcdef0fedcba0987654321 |
|||
0x1234567890abcdef0fedcba0987654321 |
|||
0x1234567890abcdef0fedcba0987654321 |
|||
MUL |
|||
MUL |
|||
0 |
|||
MSTORE |
|||
32 |
|||
0 |
|||
RETURN |
|||
;; 47d0817e4167b1eb4f9fc722b133ef9d7d9a6fb4c2c1c442d000107a5e419561 |
|||
) |
@ -1 +0,0 @@ |
|||
6064601b60251560005560006001f2 |
@ -1,12 +0,0 @@ |
|||
;; Should return (27 * 37) `mod` 100 = 99 = 0x63 |
|||
(asm |
|||
100 |
|||
27 |
|||
37 |
|||
MULMOD |
|||
0 |
|||
MSTORE8 |
|||
0 |
|||
1 |
|||
RETURN |
|||
) |
@ -1 +0,0 @@ |
|||
4a |
Loading…
Reference in new issue