answersLogoWhite

0

xchg- Exchange contents of specified destination and source operands.

eg. XCHG AL, CL Exchange contents of Al with CL

XCHG BP, SI Exchange contents of BP with SI

xlat- It is a translate instruction used for code conversion using look up table technique

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is xlat in 8086?

XLAT instruction converts the contents of AL register into a number stored in a memory table,this instruction perform the direct table look up technique often used to convert one code to another.An XLAT instruction 1st add the contents of this AL to BX to form a memory address within a data segment .It then copies the contents of this address into AL.This is the only instruction that adds an 8 bit number to 16-bit number.


What is Bios function call in 8086 microprocessor?

The BIOS function in the 8086 microprocessor is called an interrupt function. It is an interrupt function because it is not called by a function call instruction.


Why do you use XLAT in 8086?

XLAT introduces the concept of a "dictionary lookup." It is technically the same as "mov al,[ds:bx+al]", but with fewer bytes of instruction, and requiring fewer clock cycles. A developer might use this when determining which dynamic function to call based on some condition, or use it to look up the value of a byte in a certain memory area, or even when using it as a simple Ceasar cipher encoder/decoder (for elementary encryption of code, perhaps, as it'd be fairly useless for actual encryption).


Can you provide me xlat instruction in 8086 and assembly program language?

The XLAT instruction in the 8086 assembly language is used to translate a byte in the AL register using a lookup table pointed to by the BX register. The effective address of the lookup table is determined by the value in AL, which is used as an index to fetch the corresponding byte from the memory location pointed to by BX. Here's a simple example program: MOV BX, OFFSET lookup_table ; Load the address of the lookup table MOV AL, [some_index] ; Load the index into AL XLAT ; Translate AL using the lookup table ; AL now contains the translated value In this context, lookup_table would be an array of bytes, and some_index holds the index for the translation.


How many states for xchg instruction?

The XCHG instuction takes 6 states to execute.


What is the function of pin's1 and 20 in 8086 microprocessor?

Pins 1 and 20 in the 8086 microprocessor are (both) power and signal ground (GND).


What is the function of the PC register in the 8086 CPU?

There is no PC register in the 8086/8088. It is called the IP register by Intel and it stands for the Instruction Pointer. It contains the address of the current/next instruction to be executed.


What is XLAT?

XLAT, or "translation," typically refers to a process in networking where addresses are converted from one format to another, often associated with techniques like Network Address Translation (NAT). In the context of computer science, it can also pertain to the translation of programming languages or data formats. Additionally, XLAT may be used in various fields to describe the conversion or adaptation of information from one context to another.


Where can you find a 8086 MP on Multisim?

In Multisim, you can find the 8086 microprocessor by navigating to the components toolbar. Look for the "Microprocessors" category or use the search function to type "8086." Once located, you can drag and drop it into your circuit design workspace for simulation and testing. If it's not available in your version, you may need to check for additional libraries or updates.


How many machine cycles in the XCHG instruction?

Summary − So this instruction XCHG requires 1-Byte, 4-Machine Cycles (Opcode Fetch) and 4 T-States for execution as shown in the timing diagram.


Which IC is used as clock generator in 8086?

The 8086 Microprocessor operate to require frequency that is provided by clock generator to 8086 Microprocessor and also Synchronization various component of 8086.


Explain the function of BIU and EU in 8086?

biu stands for bus interface unit and eu stands for execution unit. In 8086 microprocessor BIU fetches the instructions and places in the queue. The Eu executes the fetched instruction and places the result in the registers