Usage: XLAT translation-table
XLATB (masm 5.x)
Modifies flags: None
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 best way to discripe this is MOV AL,[BX+AL]
Clocks Size
Operands 808x 286 386 486 Bytes
table offset 11 5 5 4 1
D7 XLAT m8 Set AL to memory byte DS:[(E)BX + unsigned AL]
D7 XLATB Set AL to memory byte DS:[(E)BX + unsigned AL]
Translates a value from one coding system to another by looking up
the value to be translated in a table stored in memory.
Before the instruction is executed, BX should point to a table in
memory and AL should contain the unsigned position of the value to
be translated from the table. After the instruction, AL contains
the table value with the specified position.
No operand is required, but one can be given to specify a segment
override. DS is assumed unless a segment override is given.