1 of 5

ARITHMETIC, LOGIC

INSTRUCTIONS, AND PROGRAMS

2 of 5

Table 6-1: Unsigned Multiplication Summary (MUL AB)

Table 6-2: Unsigned Division Summary (DIV AB)

3 of 5

Example 6-17

Show the results of the following.

MOV A,#35H ;A = 35H

ANL A,#0FH ;A = A AND 0FH (now A = 05)

35H 0011 0101

0FH 0000 1111

05H 0000 0101 35H AND 0FH = 05H

Solution:

4 of 5

Example 6-18

Show the results of the following.

MOV A,#04 ;A = 04

ORL A,#30H ;A = A OR 30H (now A = 34H)

04H 0000 0100

30H 0011 0000

34H 0011 0100 04H OR 30H = 34H

Solution:

5 of 5

Example 6-19

Show the results of the following.

MOV A,#54H

XRL A,#78H

54H 0101 0100

78H 0111 1000

2CH 0010 1100 54H XOR 78H = 2CH

Solution: