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:
fridtjof 2026-05-13 15:05:14 +02:00
parent 864909bbbf
commit b19e4e7977

View file

@ -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: