Skip to main content

logical_flags

Function logical_flags 

Source
pub const fn logical_flags(
    result: u32,
    shifter_carry: bool,
    prior: Flags,
) -> Flags
Expand description

ARM logical-op flag update (AND/EOR/ORR/MOV/BIC/MVN/TST/TEQ, Mesen2 LogicalOp).

V is left UNAFFECTED (only ADD/SUB-family ops touch it); C becomes the barrel shifter’s carry-out (or is preserved when the shift was LSL #0 — the caller passes the shifter’s carry-out unconditionally, which is already correct in that case since LSL #0 returns the flags’ existing carry unchanged, see shift_lsl).