ton-blockchain / docs

TON documentation
https://ton.org/docs
82 stars 45 forks source link

Missing exotic cell primitives on TVM instructions page #60

Open ProgramCrafter opened 1 year ago

ProgramCrafter commented 1 year ago

https://github.com/ton-blockchain/docs/blob/master/docs/smart-contracts/tvm-instructions/instructions.md is missing some primitives:

CF23 — ENDXC (b x – c), if x 6= 0, creates a special or exotic cell (cf. 3.1.2) from Builder b. The type of the exotic cell must be stored in the first 8 bits of b. If x = 0, it is equivalent to ENDC. Otherwise some validity checks on the data and references of b are performed before creating the exotic cell

D739 — XCTOS (c – s ?), transforms an ordinary or exotic cell into a Slice, as if it were an ordinary cell. A flag is returned indicating whether c is exotic. If that be the case, its type can later be deserialized from the first eight bits of s