Assembly (x86):

后端 未结 2 661
醉话见心
醉话见心 2021-01-22 00:18

I\'ve been banging my head against the wall in an attempt to understand why the following assembly is not correctly dumping the contents of \'HELLO_WORLD\'.

<         


        
2条回答
  •  礼貌的吻别
    2021-01-22 00:55

    Execution starts at the top. If you omit the jmp start then the character h will get interpreted by the CPU as if it were an instruction. Surely you see that such can not be correct?

    as far I was concerned, there was no distinction between code and data?

    There's no distinction between code and data when we consider their placement in the binary. But code and data still remain 2 completly different items. Code being the only one that can get executed by the CPU.

提交回复
热议问题