CR16C: fix incorrect condition for BRhs (higher or same)
"Z or L flag is 1", according to programmer's reference
This commit is contained in:
parent
864909bbbf
commit
b19e4e7977
1 changed files with 1 additions and 1 deletions
|
|
@ -1298,7 +1298,7 @@ static void gen_br_cond(DisasContext* ctx, int cond, TCGLabel* l) {
|
|||
break;
|
||||
case CR16C_COND_HS:
|
||||
temp = tcg_temp_new_i32();
|
||||
tcg_gen_and_i32(temp, psr_z, psr_l);
|
||||
tcg_gen_or_i32(temp, psr_z, psr_l);
|
||||
tcg_gen_brcondi_i32(TCG_COND_NE, temp, 1, l);
|
||||
break;
|
||||
case CR16C_COND_LT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue