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
PROGRAMMING CONCEPTS  II 123
Initially AL iii) = 0.
AL is compared with each number. If AL is not above or equal to the number in the array, iv)
the bigger number is brought to AL.
If AL is above the number in the array, the content of AL is retained as it is.v)
is is one round of comparison.  en the pointer (BX) is incremented and count (CL) vi)
is decremented.
When the count reaches zero, ZF is set and the looping is terminated because of using vii)
the JNZ mnemonic.
e biggest number is now in AL which is stored in memory in the space allocated for it.viii)
Example 3.18 is an another interesting program, which searches a character string ...
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