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 103
Requirements Load into BX, the off set of the look-up table.
en use XLAT
en into AL, load the number which will extract the required data. Refer
Table 3.2. For example,
if you want to get the ASCII value of 5, load AL = 5. It will get the sixth entry from the table.
See the look up table which relates a decimal number to its ASCII value.  e ASCII values such
as ‘0’, ‘1’, ‘2’ have numerical values 30H, 31H, 32H. Refer to the ASCII table in Section 0.6.5.
Example 3.5
e following program gets into the memory location starting from VALUES, the ASCII
values of 1, 3, 5, 4, 0 … in that order.  e look-up table ...
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