8086 instruction set with examples--Part 2--XLAT and XCHG

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 4

  • @nitindhamale8789
    @nitindhamale8789 3 ปีที่แล้ว +1

    In xlat instruction where is the user created table
    and how it's created

    • @KVK_11
      @KVK_11  3 ปีที่แล้ว +1

      User has to find a free area within data segment and BX is used to hold the starting address of the area, which is base offset of the table.The table itself is virtual as only base of table is kept track. XLAT's capability actually helps us to use that area as a table.

    • @nitindhamale8789
      @nitindhamale8789 3 ปีที่แล้ว +1

      @@KVK_11 Thank you for support

    • @nitindhamale8789
      @nitindhamale8789 3 ปีที่แล้ว

      data segment
      table db '0123456789ABCDEF'
      data ends
      code segment
      assume cs:code ,ds:data
      start :mov ax,data
      mov ds,ax
      mov al,00H
      mov bl,OFFSET table
      xlat
      mov ah,4ch
      int 21h
      code ends
      end start