Skip to content

Conversation

ethteck
Copy link
Contributor

@ethteck ethteck commented Sep 13, 2025

This makes it so that all arches share the same value for an invalid opcode, so platform-specific logic isn't needed for checking whether instructions are valid.

Also updated dependencies

>
> This makes it so that all arches share the same value for an invalid opcode, so platform-specific logic isn't needed for checking whether instructions are valid.
Also updated dependencies
@ethteck ethteck force-pushed the standard-invalid-opcode branch from 1fb5b31 to 3b718e3 Compare September 13, 2025 08:41
@encounter
Copy link
Owner

It seems we’re conflating the concept of "invalid" and "data" opcodes. I’d prefer to make OPCODE_INVALID u16::MAX. Then OPCODE_DATA can be u16::MAX - 1.

@ethteck
Copy link
Contributor Author

ethteck commented Sep 13, 2025

okay, sounds good

@encounter encounter changed the title Standardize the value for an invalid opcode Standardize the values for invalid and data opcodes Sep 13, 2025
@encounter
Copy link
Owner

Looks great, thanks!

@encounter encounter merged commit e2c7034 into encounter:main Sep 13, 2025
24 checks passed
@ethteck ethteck deleted the standard-invalid-opcode branch September 13, 2025 18:39
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.

2 participants