pseudo-jit icon indicating copy to clipboard operation
pseudo-jit copied to clipboard

Consider ColdFire Opcodes

Open nonarkitten opened this issue 2 years ago • 0 comments

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 avatar Apr 19 '22 03:04 nonarkitten