Author Topic: Adressing!!  (Read 2533 times)

imadhx30

  • Regular Member
  • *
  • Posts: 35
Adressing!!
« on: December 29, 2013, 08:11:30 AM »
why addressing memory to a memory not  !!!!!!! mov [memory1],[memory2]

dedndave

  • Member
  • *****
  • Posts: 8829
  • Still using Abacus 2.0
    • DednDave
Re: Adressing!!
« Reply #1 on: December 29, 2013, 08:14:55 AM »
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 ?