The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL

SIGNED ARITHMETIC


INSTRUCTIONS


OV Flag(cont’)


‰In unsigned number addition, we must monitor the status of CY (carry)


¾Use JNC or JC instructions


‰In signed number addition, the OV (overflow) flag must be monitored by the programmer


¾JB PSW.2


or JNB PSW.2

Free download pdf