News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Need info on usage of ESP & EBP in code

Started by Rainstorm, April 25, 2007, 12:21:11 AM

Previous topic - Next topic

raymond

Thanks for the correction Paul. That's what I had initialy but, for some stupid unknown reason, I shifted the "push edi" to the wrong place when I posted the code. :red

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

Rainstorm

MichaelW wrote..
QuoteBoth forms should generally execute in about the same number of cycles. AFAIK the effective address calculations affected the cycle counts only for the very early processors

Thanks for the confirmation. - mostly all the code i've seen usually uses the registers, so I got the impression that, that usage was mainly because of a speed factor, although..I didn't understand why it would be so.