Tag Archives: ASSEMBLY04

ASSEMBLY04 An Assembly program to exchange two memory variables using XCHG instruction

Now we will write another Assembly program which does some Exchange Operation. Before actually starting to write the program, Let’s understand XCHG instruction. As we know the programs work only with the instructions in the instruction set. Instruction XCHG is used to EXCHANGE memory variables in the following permutations above. REG stands for Registers (Eg.  AX, BX, CX,… Read More »