summaryrefslogtreecommitdiff
path: root/target-m68k/op.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-m68k/op.c')
-rw-r--r--target-m68k/op.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-m68k/op.c b/target-m68k/op.c
index 69d1fde9a7..d483488be8 100644
--- a/target-m68k/op.c
+++ b/target-m68k/op.c
@@ -170,6 +170,16 @@ OP(btest)
FORCE_RET();
}
+OP(ff1)
+{
+ uint32_t arg = get_op(PARAM2);
+ int n;
+ for (n = 32; arg; n--)
+ arg >>= 1;
+ set_op(PARAM1, n);
+ FORCE_RET();
+}
+
OP(subx_cc)
{
uint32_t op1 = get_op(PARAM1);