| R (Memory Refresh) || 8-bit || Increments after each M1 cycle (instruction or prefix fetch) to refresh DRAM || Only the lower 7 bits are incremented. Bit7 can only be changed by writing to the R register.
|}
While the ALU is responsible for most flag changes, other instructions like stack operations (POP AF), specific register loads (LD A,I/R), direct flag commands (SCF, CCF), bit tests (BIT), and the control logic within block instructions also modify the flag register.
<br>