Data Movement: Data Movement Instructions Move Data From One Place, Called The Source

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Data Movement

Data movement instructions move data from one place, called the source


operand, to another place, called the destination
operand. Move instructions move data from one register to another.

The data movement instructions include MOV, MOVSX, MOVZX

MOV instruction is the most important command in the 8086 because it


moves data from one location to another. It MOV copies the data in the source
to the destination.

movsx and movzx are special versions of mov which are designed to be


used between signed (movsx) and unsigned (movzx) registers of different
sizes.
 movsx means move with sign extension(+,- ka sign pehchan ho gi is ke ).
The data is moved from a smaller register into a bigger register, and the
sign is preserved by either padding ‫ بھرتی‬with F's (for negative values). ( left
pr F lagy ga)
examples:
0x8000 becomes 0xFFFF8000
 movzx means move with zero extension.  The data is moved from a
smaller register into a bigger register, and the sign is ignored. (left pr zero
lagy ga) and the sign is preserved by either padding with 0's (for positive
values)
Here examples:
0xFFFF becomes 0x0000FFFF

0x8000 becomes 0x0000800

You might also like