Skip to Main Content
The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
book

The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition

by Lyla B. Das
May 2024
Intermediate to advanced content levelIntermediate to advanced
665 pages
23h 2m
English
Pearson India
Content preview from The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
162 THE x86 MICROPROCESSORS
4.5 | ASCII Operations
e processor has a number of instructions relating to the processing of ASCII numbers.
4.5.1 | ASCII Addition
AAA – ASCII Adjust AL after addition
is instruction is used after addition of two ASCII numbers. It checks the lower nibble of AL
for one of the two conditions:
whether it is within A and F.i)
whether the auxiliary carry fl ag (AF) is set. ii)
Depending on this, it performs the required corrections. See the three cases shown.
Add ‘5’ and ‘4’, get the sum in AL.
Case 1
35H
34H
69H
In this case the lower nibble is not within A and F, and the AC fl ag is not set i.e., AF = 0.  en
the instruction ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microprocessors and Microcontrollers  by Pearson

Microprocessors and Microcontrollers by Pearson

Lyla B Das

Publisher Resources

ISBN: 9781282663169