assembly - Purpose of ESI & EDI registers? -


What is the real purpose and use of EDI & amp;

I know that they are used for string operation for one thing.

Can anyone give an example?

There are some operations that you only DI / SI (or their extended) If you do not learn as ASM in 1985) of these are

  REP STOSB REP MOVSB ​​REP SCASB  

respectively , Repeated (= mass) are working for storage, loading and scanning. What do you do that you set SI and / or DI to point to one or both operands, perhaps put a count in the CX, and then there are such operations that are working on a bunch of bytes at one time. , And they put the CPU in automatic Because you are not explicitly loop coding, they do more (more generally) more efficiently than their hand coded loop.

Just when you are thinking: how you set up the operation, again in a large closest block of storage memory, value can be something simple like punching; MOVSB ​​is used, I think, to copy data from one buffer (a bunch of well-bytes) to another; And SCASB is used to see a byte that matches some search criteria (I'm not sure whether it is searching only on equality, or what & ndash; you can see it :))

Most of those are for those reges.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -