Skip to main content

shift_rrx

Function shift_rrx 

Source
pub const fn shift_rrx(value: u32, carry_in: bool) -> (u32, bool)
Expand description

RRX (rotate right extended by 1, through the carry flag; Mesen2 ShiftRrx).

The immediate-operand encoding ROR #0 is repurposed to mean this: the incoming carry becomes bit 31 of the result, and the outgoing carry becomes the value’s own bit 0.