From 514ed0d98e058596720f94af4af347b609980de9 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 8 Dec 2010 00:51:25 +0200 Subject: drc: allow xor imm 0 --- libpcsxcore/new_dynarec/assem_arm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpcsxcore') 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)); -- cgit v1.2.3