The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL

NUMBERING AND CODING SYSTEMSSubtraction of Hex Numbers


‰If the second digit is greater than the first, borrow 16 from the preceding digitEx. Perform hex subtraction: 59F – 2B859F


LSD: 15 – 8 = 7
–2B

9 + 16 – 11 = 14 = E


16

2E


5 – 1 – 2 = 2

Free download pdf