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

Ideas for assembly instruction improvements #42

Open
bobbinth opened this issue Aug 23, 2020 · 0 comments
Open

Ideas for assembly instruction improvements #42

bobbinth opened this issue Aug 23, 2020 · 0 comments
Labels
enhancement New feature or request instruction set Changes to instruction set

Comments

@bobbinth
Copy link
Contributor

Some of the instructions below would require support for 2-parameter instructions.

Crypto instructions

Bit manipulations

  • bext.n.m to extract mth bit from an n-bit value. This could replace the current isodd. For example, bext.128.0 would extract the least significant bit of the field element.
  • btrunc.n.m to truncate an n-bit value to m bits. For example, btrunc.128.64 would truncate a field element to a 64-bit value.
  • bsplit.n.m to split an n-bit value into m-bit chunks. For example, bsplit.64.32 would split a 64-bit value into two 32-bit values.

Stack manipulation

  • Reverse roll instructions - e.g. uroll.4 to be the opposite of roll.4
  • More roll instructions - e.g. roll.3
@bobbinth bobbinth added enhancement New feature or request instruction set Changes to instruction set labels Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request instruction set Changes to instruction set
Projects
None yet
Development

No branches or pull requests

1 participant