1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Add disasm for cell with lib support, add PUSHREFSLICE lib disasm support, allow to load lib in PUSHCONT

This commit is contained in:
Andrey Tvorozhkov 2024-01-10 13:04:42 +03:00
parent 29b35d086b
commit 39745ee86c
2 changed files with 37 additions and 14 deletions

View file

@ -13,9 +13,17 @@ PROGRAM{
// add lib cell to vmlibs
<b code-1 ref, b> <s code-1 hashu @vmlibs @ 256 udict! drop @vmlibs !
// Lib in pushref
<{
// add lib in pushref
<b 2 8 u, code-1 hashu 256 u, b>spec PUSHREF
BLESS
EXECUTE
}>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