You are on page 1of 2

Swap the word at memory location 24000 and 25000.

Here 2000 is the segment and 4000 is the offset. Hence, we shift the segment by one digit and then
add the offset.

We move 4000 into BX and 5000 into DX.

BX+DI is 2010, DS: 2020. The contents from 2010 are transferred to 2020.

Why did we do this? The reason is that you can’t transfer data from memory location to memory
location.

You might also like