News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Adressing!!

Started by imadhx30, December 29, 2013, 08:11:30 AM

Previous topic - Next topic

imadhx30

why addressing memory to a memory not  !!!!!!! mov [memory1],[memory2]

dedndave

intel processors don't support MOV mem,mem instructions, per se
it can be done with the MOVS instruction, however, if ESI points to the source and EDI points to the destination
also, PUSH and POP can do it, if one or both of the operands are on the stack

how many bytes do you want to copy ?
is it inside a loop (is speed critical) ?
do you have a register available ?