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

Consider ColdFire Opcodes #9

Open
nonarkitten opened this issue Apr 19, 2022 · 0 comments
Open

Consider ColdFire Opcodes #9

nonarkitten opened this issue Apr 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@nonarkitten
Copy link
Owner

nonarkitten commented Apr 19, 2022

There are some really good ColdFire opcodes we can include that won't confuse core auto-detection. What this would allow is the use of a more modern compiler like CodeWarrior, which might produce better code than gcc?

  • bitrev; reverse the order of all 32-bits
  • byterev; reverse the byte-order of all 4 bytes
  • ff1; find the first '1' bit
  • mov3q; move a 3-bit immediate to arbitrary EA
  • mvs; move and sign-extend in one operations
  • mvz; move and zero-extend in one operations
  • rems/remu; like divs/divu but only get remainder
  • sats; if operation overflows, saturate to +/- INT MAX
  • tpf; 2, 4 or 6-byte NOP
@nonarkitten nonarkitten added the enhancement New feature or request label Apr 19, 2022
@nonarkitten nonarkitten transferred this issue from another repository Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant