Assembly: mov statment (MASM/TASM)

Contributor Icon Contributed by William_Wilson Date Icon March 5, 2006  
Tag Icon Tagged: Computer programming

How to use mov


mov is a useful tool in assembly language, it can move constants, or dynamics such as offsets.

mov takes 2 parameters, the first is the reciever and the second is the operand.

Example:
mov AX, 5 ;this places the value 5 into AX register

mov BX, OFFSET array ;this would put the offset of the variable array into BX

Questions/Comments: william_a_wilson@hotmai.com
-William. ยง (marvin_gohan)

Previous recipe | Next recipe |
 
blog comments powered by Disqus