More steps in some pops than equivalent pushes?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

More steps in some pops than equivalent pushes?

culchie
My experience is that there are more assembly instructions required to POP to a location in some segments than are required to push from the same location. As this seems counter-intuitive somehow could someone let me know if I am wrong.
Reply | Threaded
Open this post in threaded view
|

Re: More steps in some pops than equivalent pushes?

Francisco José Tornay Mej
I've just implemented the memory access features and yes, my implementation of some pops is (pretty) longer than the equivalent pushes. I can't think of any other way of implementing it. I think it's necessary because of the scarcity of registers in the CPU.