Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->CPIR

CPIR  Compare accumulator and memory location addressed by HL and then increment HL and decrement BC.  Repeat until A = (HL) or BC = 0

A - (HL) : HL <- HL + 1 : BC <- BC - 1


Flags
    
SSet if A < (HL) else cleared
ZSet if A = (HL) else cleared
HSet if half carry, else cleared
P/VCleared if BC becomes 0, else set
NSet always
CNot affected
    
No ofMTusec @
bytescyclesstates2 MHz
    
BC=0 or A=(HL)24168
BC<>0 & A<>(HL)252110.5