In assembly, what does `PTR` stand for?

后端 未结 1 1499
别那么骄傲
别那么骄傲 2021-01-12 12:08
and     dword ptr [ebp-4], 0

In assembly code like above, what does the term PTR stand for? I know their usage -- size direct

相关标签:
1条回答
  • 2021-01-12 12:52

    The point of this hint is to tell the size of the operand.

    You're writing to a point in memory. As you're only giving a 0, it doesn't know if it should write a byte, or word, or doubleword. The dword ptr means "write a doubleword". Yes, it stands for pointer, because you put a memory address as destination.

    0 讨论(0)
提交回复
热议问题