aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornotaz2010-12-08 00:51:25 +0200
committernotaz2010-12-14 15:25:04 +0200
commit514ed0d98e058596720f94af4af347b609980de9 (patch)
tree673d8643c3c63ba6fdd608f01735b7aecb4dfece /libpcsxcore
parentbb5285ef904a834e9ecb18cebac80c3378c77558 (diff)
downloadpcsx_rearmed-514ed0d98e058596720f94af4af347b609980de9.tar.gz
pcsx_rearmed-514ed0d98e058596720f94af4af347b609980de9.tar.bz2
pcsx_rearmed-514ed0d98e058596720f94af4af347b609980de9.zip
drc: allow xor imm 0
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/new_dynarec/assem_arm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpcsxcore/new_dynarec/assem_arm.c b/libpcsxcore/new_dynarec/assem_arm.c
index 83b115d..3abef7f 100644
--- a/libpcsxcore/new_dynarec/assem_arm.c
+++ b/libpcsxcore/new_dynarec/assem_arm.c
@@ -1226,13 +1226,12 @@ void emit_orimm(int rs,int imm,int rt)
void emit_xorimm(int rs,int imm,int rt)
{
- assert(imm>0&&imm<65536);
u_int armval;
if(genimm(imm,&armval)) {
assem_debug("eor %s,%s,#%d\n",regname[rt],regname[rs],imm);
output_w32(0xe2200000|rd_rn_rm(rt,rs,0)|armval);
}else{
- assert(imm>0);
+ assert(imm>0&&imm<65536);
assem_debug("eor %s,%s,#%d\n",regname[rt],regname[rs],imm&0xFF00);
assem_debug("eor %s,%s,#%d\n",regname[rt],regname[rs],imm&0xFF);
output_w32(0xe2200000|rd_rn_imm_shift(rt,rs,imm>>8,8));