Skip to main content

check_condition

Function check_condition 

Source
pub const fn check_condition(cond: u8, f: Flags) -> bool
Expand description

Evaluate a 4-bit ARM condition code against the current flags (Mesen2 CheckConditions).

cond is the top 4 bits of every ARM instruction word (opcode >> 28); only 0..=15 are meaningful (15 = NV, reserved/never on this architecture generation — ported as false verbatim, matching the source rather than guessing at later-ARM NV semantics).