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

Fix off-by-1 error for max opcode and add missing opcodes for OTP 23 and OTP 24 #1897

Merged
merged 4 commits into from
Jan 25, 2021

Conversation

KronicDeth
Copy link
Owner

Fixes #1896

Changelog

Enhancements

  • Add missing opcodes to Code disassembler
    • OTP 23 opcode bs_start_match4
    • Current (in-development) OTP 24 opcodes
      • make_fun3
      • init_yregs
      • recv_marker_bind
      • recv_marker_clear
      • recv_marker_clear
      • recv_marker_user

Bug Fixes

  • Compare max opcode in to file to max opcode number, not ordinal.
    Opcodes are 1-based, but the ordinal of the Kotlin Enums are 0-based, so the comparison was off-by-1 when a file had the max opcode and would be incorrectly marked as too new.

Opcodes are 1-based, but the ordinal of the Kotlin Enums are 0-based, so the comparison was off-by-1 when a file had the max opcode and would be incorrectly marked as too new.
@KronicDeth KronicDeth merged commit 00b5a90 into master Jan 25, 2021
@KronicDeth KronicDeth deleted the 1896 branch January 25, 2021 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Max opcode (169) exceeds expected max opcode (168
1 participant