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

Add support for seb/seh instructions from mips32r2 #273

Merged
merged 3 commits into from
May 19, 2024

Conversation

Xeeynamo
Copy link
Contributor

These instructions are found specifically on PlayStation Portable and they are backported to its processor from the mips32r2 specs.

SEH is a single instruction that replaces the combo sll DST_REG, SRC_REG, 0x10 and sra DST_REG, DST_REG, 0x10 to perform a s16 cast. Same concept for SEB but when a cast to s8 is required.

SEB instruction

SEH instruction

m2c/evaluate.py Outdated Show resolved Hide resolved
m2c/arch_mips.py Outdated Show resolved Hide resolved
@simonlindholm simonlindholm merged commit 4ee07ea into matt-kempster:master May 19, 2024
1 check passed
@Xeeynamo Xeeynamo deleted the seb-seh branch May 19, 2024 11:45
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.

3 participants