码迷,mamicode.com
首页 > 其他好文 > 详细

XLAT转码:以DS:【BX+AL】为地址,提取存储器中的一个字节再送入AL

时间:2015-04-29 13:15:16      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

data segment
    a db 1,2,3,4,5,6,7,8,9
    b dw 0  ;sum of a
    table db 11h,22h,33h,44h,55h,66h,77h,88h,99h    
ends

code segment
start:  
    mov ax,data
    mov ds,ax
    mov si,offset a
    mov cx,offset b - offset a  ;array bytes length
    s:
    mov al,[si]
    mov ah,0
    add b,ax
    inc si
    loop s   
    
    ;test xlat
    mov bx,offset table
    mov al,0
    xlat       
    
    mov ax, 4c00h
    int 21h    
ends

end start

 

XLAT转码:以DS:【BX+AL】为地址,提取存储器中的一个字节再送入AL

标签:

原文地址:http://www.cnblogs.com/wucg/p/4465589.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!