Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,915 of 4,675    |
|    Frank Kotler to Kevin Mardoux    |
|    Re: copy bytes in a file    |
|    11 Aug 17 16:28:23    |
      From: fbkotler@nospicedham.myfairpoint.net              Kevin Mardoux wrote:       > Hi,       >       > I try, now it is OK       >       > AaBbCcDdEe with 12345 becomes A1B2C3D4E5       >       > It works....              Hi Kevin,              Okay. Earlier you mentioned:              inc SI ; in the second file ; letter T       inc DI ; in first file ; letter M       movsb ; transert byte of SI into DI ; letter h replace letter y              Doing this for the whole buffer and then writing the whole buffer at       once would be faster than doing the self-modifying code, seeking and       writing one byte at a time. Since your files are small, this probably       isn't too important. As long as you're getting the results you want,       that's the main thing...              Best,       Frank              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca