MOV instruction detailed

Source: Internet
Author: User

MOVThe instruction can CPU CPU transfer words or bytes between or between memory, and the information it transmits can be transferred from register to register, immediately count to register, immediately count to storage unit, from storage unit to register, from register to storage unit, from register or storage unit to CS outside segment register ( Note that the immediate number cannot be sent directly to the segment register), from the segment register to the Register or storage unit.
But note

(1) MOV the source operand in the instruction must not be an immediate number and a code segment CS register;
(2) MOV The instruction is absolutely not allowed to transfer data directly between two storage units;
(3) MOV The instruction is absolutely not allowed to transfer data directly between two segment registers;
(4) The MOV directive does not affect the flag position

例:MOV   AX,DATA_SEG       MOV    DS,AX

Note: The segment register (segment address) must be initialized with an immediate number through registers such as AX registers.

例: MOV    AL,‘E’

Send the immediate number ( E the code of the character ASC ) to the AL register.

例: MOV    TABLE

The TABLE offset address (not the content) is sent to the BX register. OFFSETThis is the property operator, which represents the value (not the content) of the subsequent symbolic address as the operand.

例    MOV    AX,Y[BP][SI]

Send the contents of the address as 16d×(SS)十(BP)十(SI)十位移量Y a memory unit to the AX register

MOV instruction detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.