Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->SUB s

SUB s   Subtract operand s from accumulator

A <- A - s

Flags
    
SSet if result -ve, else cleared
ZSet if result zero, else cleared
HSet if half borrow
P/VSet if overflow, else cleared
NSet always
CSet if borrow
    
S:No ofMTusec @
bytescyclesstates2 MHz
    
R1142
N2273.5
(HL)1273.5
(IX+d)35199.5
(IY+d)35199.5
r may be one of A,B,C,D,E,H,L
n is 1 byte of data