
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 ...