XLAT转码:以DS:【BX+AL】为地址,提取存储器中的一个字节再送入AL
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