assembly function flow

后端 未结 3 1881
半阙折子戏
半阙折子戏 2021-01-23 12:32

I am reading a \"programming from the ground up\", if you don\'t know what this book is, you still can help me.

In this book(chapter 4) there are 2 things that I don\'t

3条回答
  •  没有蜡笔的小新
    2021-01-23 13:00

    As Greg hinted, x86, like most mainstream architectures, does not have an instruction that copies data from memory to memory[1]. Thus, you must copy data using a separate load and store. First you load the data from the source memory into a register, then you store the data from that register to the destination memory. That's all that is happening here.

    [1] I know, I know, but let's leave rep movs out of this and keep things simple.

提交回复
热议问题