aboutsummaryrefslogtreecommitdiff
path: root/target-sh4
diff options
context:
space:
mode:
Diffstat (limited to 'target-sh4')
-rw-r--r--target-sh4/op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/op.c b/target-sh4/op.c
index ce3185ec9a..4dc7193e19 100644
--- a/target-sh4/op.c
+++ b/target-sh4/op.c
@@ -594,8 +594,8 @@ void OPPROTO op_shlr16_Rn(void)
void OPPROTO op_tasb_rN(void)
{
- cond_t(*(int8_t *) env->gregs[PARAM1] == 0);
- *(int8_t *) env->gregs[PARAM1] |= 0x80;
+ cond_t((env->gregs[PARAM1] && 0xff) == 0);
+ *(int8_t *) &env->gregs[PARAM1] |= 0x80;
RETURN();
}