Is assembly code cross-platform?

前端 未结 2 953
猫巷女王i
猫巷女王i 2021-01-07 03:47
0x042444FF; /* inc dword ptr [esp+4] */

0x042444FF is the machine code,while inc dword ptr [esp+4] is the assembly code,

2条回答
  •  [愿得一人]
    2021-01-07 04:24

    Assembly code is basically a worded form of the machine code; it is designed to make writing machine code a little more convenient and readable. There is pretty much a one-to-one mapping of the two, so one assembly statement is turned into its machine code equivalent. Macine code is CPU-dependent. Assembly is therefore, also CPU-dependent.

提交回复
热议问题