mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
vm: bugfixes
This commit is contained in:
parent
27aaa11524
commit
ba76f1404e
30 changed files with 396 additions and 178 deletions
20
crypto/test/fift/test-stack-copy.fif
Normal file
20
crypto/test/fift/test-stack-copy.fif
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/fift -s
|
||||
"Asm.fif" include
|
||||
2500 =: N
|
||||
{ 5 * } : *K
|
||||
N 100 / =: N/100
|
||||
N 10 / =: N/10
|
||||
{ { EXECUTE } 100 times } : 100EXECUTE
|
||||
{ DUP { 2DUP } 7 times } : 15DUP
|
||||
{ { 2DUP } 50 times } : 100DUP
|
||||
{ { 15 -1 SETCONTARGS 15DUP } 10 times } : 10SET&DUP
|
||||
<{
|
||||
CONT:<{ }>
|
||||
15DUP
|
||||
N/10 INT REPEAT:<{ 10SET&DUP }>
|
||||
N/100 *K INT REPEAT:<{ 100DUP }>
|
||||
N/100 *K INT REPEAT:<{ 100EXECUTE }>
|
||||
}>s =: Code
|
||||
|
||||
Code csr.
|
||||
Code 1000000 gasrunvmcode
|
Loading…
Add table
Add a link
Reference in a new issue