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

feat: implement 0x14 - EQ Opcode #323

Merged
merged 6 commits into from
Sep 14, 2023
Merged

feat: implement 0x14 - EQ Opcode #323

merged 6 commits into from
Sep 14, 2023

Conversation

alextnetto
Copy link
Contributor

0x14 - EQ opcode

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Resolves: #9

What is the new behavior?

  • EQ implemented and tested

Does this introduce a breaking change?

  • Yes
  • No

@alextnetto alextnetto changed the title Feat/eq feat: implement 0x14 - EQ Opcode Sep 8, 2023
let popped = self.stack.pop_n(2)?;
let a = *popped[0];
let b = *popped[1];
let result = if a == b {
Copy link
Collaborator

@enitrat enitrat Sep 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can import use utils::traits::BoolIntoNumeric; and then do
let result:bool = (a == b).into();

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @alextnetto any updates?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! @enitrat. Lmk anything more I can do.

Copy link
Member

@Eikix Eikix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR! good job

@Eikix Eikix added this pull request to the merge queue Sep 14, 2023
Merged via the queue into kkrt-labs:main with commit 40ee6b2 Sep 14, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

feat: implement 0x14 - EQ opcode
3 participants