Outils pour utilisateurs

Outils du site


back2root:ibm-pc-ms-dos:instr:xlat-xlatb

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
back2root:ibm-pc-ms-dos:instr:xlat-xlatb [2023/03/04 13:25] – [Tableau] fraterback2root:ibm-pc-ms-dos:instr:xlat-xlatb [2023/03/04 13:26] (Version actuelle) frater
Ligne 3: Ligne 3:
 ===== XLAT/XLATB - Translate ===== ===== XLAT/XLATB - Translate =====
  
-Replaces the byte in AL with byte from a user table addressed by BX.+Replaces the byte in AL with byte from a user table addressed by BX. The original value of AL is the index into the translate table.
  
-The original value of AL is the index into the translate table.+Locates a byte entry in a table in memory, using the contents of the AL register as a table index, then copies the contents of the table entry back into the AL register. 
 + 
 +The index in the AL register is treated as an unsigned integer. The XLAT and XLATB instructions get the base address of the table in memory from either the DS:EBX or the DS:BX registers (depending on the address-size attribute of the instruction, 32 or 16, respectively).
  
 **Usage:** **Usage:**
Ligne 22: Ligne 24:
 ^  Operands  ^  808x    ^  286  ^  386  ^  486  ^  Bytes  ^   ^ ^  Operands  ^  808x    ^  286  ^  386  ^  486  ^  Bytes  ^   ^
 | table      |  11      |  5    |  5    |  4    |  1      |   | | table      |  11      |  5    |  5    |  4    |  1      |   |
 +
 +This instruction replace the following code:
 +
 +<code asm>
 + XOR AH,AH
 + ADD BX,AX
 + MOV AL,BYTE PTR DS:[BX]
 +</code>
 +
 {{page>:back2root:ibm-pc-ms-dos:instr:see-footer}} {{page>:back2root:ibm-pc-ms-dos:instr:see-footer}}
  
back2root/ibm-pc-ms-dos/instr/xlat-xlatb.1677932716.txt.gz · Dernière modification : 2023/03/04 13:25 de frater