mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Merge bc8878f5bd into 44e7e091b2
This commit is contained in:
commit
c8361ab5b8
3 changed files with 81 additions and 11 deletions
29
crypto/test/fift/disasm-libs.fif
Normal file
29
crypto/test/fift/disasm-libs.fif
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"Disasm.fif" include
|
||||
"Asm.fif" include
|
||||
|
||||
PROGRAM{
|
||||
DECLPROC foo1
|
||||
DECLPROC foo4
|
||||
DECLPROC main
|
||||
foo1 PROC:<{ DUP 137 PUSHINT MUL PAIR }>
|
||||
foo4 PROC:<{ UNPAIR SWAP DIV }>
|
||||
main PROC:<{ 70 PUSHINT DIV }>
|
||||
}END>c constant code-1
|
||||
|
||||
// add lib cell to vmlibs
|
||||
<b code-1 ref, b> <s code-1 hashu @vmlibs @ 256 udict! drop @vmlibs !
|
||||
|
||||
// Lib in pushref
|
||||
<{
|
||||
<b 2 8 u, code-1 hashu 256 u, b>spec PUSHREF
|
||||
}>c <s disasm cr
|
||||
|
||||
|
||||
// Lib in pushrefslice
|
||||
<{
|
||||
<b 2 8 u, code-1 hashu 256 u, b>spec PUSHREFSLICE
|
||||
}>c <s disasm cr
|
||||
|
||||
// Code cell is lib cell
|
||||
<b 2 8 u, code-1 hashu 256 u, b>spec disasmc
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue