Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asm.fif improvement wishlist #631

Open
7 of 8 tasks
EmelyanenkoK opened this issue Mar 2, 2023 · 0 comments
Open
7 of 8 tasks

Asm.fif improvement wishlist #631

EmelyanenkoK opened this issue Mar 2, 2023 · 0 comments

Comments

@EmelyanenkoK
Copy link
Member

EmelyanenkoK commented Mar 2, 2023

  • MULDIVC (funC generates it for muldivc)
  • ASMOP pseudo op-code for hex-defined opcodes, which will handle cell overflows (in contrast with naive definitions like int sqr (int x) asm "x{20A8} s,";)
  • Mnemonics for RSHIFT#MOD, RSHIFTMOD, MULRSHIFT#MOD, MULRSHIFTMOD, LSHIFT#DIVMOD, LSHIFT#DIVMODR, RSHIFT#MOD, RSHIFTR#MOD, MULRSHIFTR#MOD, LSHIFTDIVMODR
  • Better handling of impossible op-code params, for instance throwing error in case 256 PUSHPOW2 instead of substituting it with PUSHNAN
  • Recursive <{ ... }>c to allow #compile "jetton_wallet.func" to jetton_wallet_code; cell literals. Probably it is expedient to merge extended_fift branch first and use anonymous namespaces.
  • Introduce Asm.fif versioning, so funC may inject restrictions on used Asm.fif version
  • PUSHSLICE for slices with high number of bits/refs e3af63e
  • FunC: Add optional src line comment #583
SpyCheese added a commit to SpyCheese/ton that referenced this issue Mar 10, 2023
Add missing opcodes, CUSTOMOP, disallow 256 PUSHPOW256, recursive PROGRAM, require-asm-fif-version
EmelyanenkoK added a commit that referenced this issue Mar 13, 2023
* Asm.fif improvements (#631)

Add missing opcodes, CUSTOMOP, disallow 256 PUSHPOW256, recursive PROGRAM, require-asm-fif-version

* Fix nested PROGRAM, add test

* Simplify require-asm-fif-version

---------

Co-authored-by: EmelyanenkoK <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant