8 Bit Add Sub
8 Bit Add Sub
Objective:
Prerequisite:
TASM assembler
1) Start
21) Mask the first nibble by AND operation with number F0h (AND
BL,F0h so BL=30h)
25) Mask the second nibble by AND operation with number 0Fh
(AND BL,0Fh so BL=08h)
28) Stop
5) Return
5) Return
Note:
1. Start
20. Preserve the result in some temporary variable say temp from
BL.
21. Mask the first nibble by AND operation with number F0h (AND
BL,F0h so BL=30h)
25. Mask the second nibble by AND operation with number 0Fh
(AND BL,0Fh so BL=08h)
28. Stop
5. Return
5. Return
Note: