XLAT 指令哪位能具体一点帮忙解释一下

sbamdanb02 2003-02-21 04:33:24
XLAT 指令哪位能具体一点帮忙解释一下
...全文
225 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
boyalvsha 2003-02-23
  • 打赏
  • 举报
回复
交换用的,
好象是和AL,AX换吧!我很少用,直接自己转多好啊!呵呵!
查书籍
ahalf 2003-02-22
  • 打赏
  • 举报
回复
mov al,[bx][al]
flybusflybus 2003-02-22
  • 打赏
  • 举报
回复
我记得以前的汇编教材大概是这样说的:xlat经常通常可以用来进行转换,比如ascall码和数字的转换,指令进行的操作是将地址为[bx],偏移为al的地址所指的内容复值给al也就是上面的兄弟说的mov al,[bx][al],这样al里就是转换后得到的值,其实很明白,不明白参考一下汇编教材
神奇的太阳 2003-02-22
  • 打赏
  • 举报
回复
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]
clumsy 2003-02-21
  • 打赏
  • 举报
回复
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.

说简单点儿就是: [(E)BX+AL] --> AL 但可以使用段前缀, 缺省为DS

21,495

社区成员

发帖
与我相关
我的任务
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
  • 汇编语言
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧