在组装中,"PTR"代表什么? [英] In assembly, what does `PTR` stand for?

查看:81
本文介绍了在组装中,"PTR"代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

and     dword ptr [ebp-4], 0

在上面的汇编代码中,这个术语 PTR代表什么? 我知道它们的用法-大小指令;但是这个术语 PTR是从何而来的呢?它代表PoinTeR吗?

In assembly code like above, what does the term PTR stand for? I know their usage -- size directives; but where had the term PTR been coined from? Does it stand for PoinTeR?

我读过:

  • What does dword ptr mean?
  • x86 Assembly Guide
  • Meaning of the [] and PTR operators???

推荐答案

此提示的目的是告诉操作数的大小.

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

您正在写入内存中的某个点.由于您只给出了0,所以它不知道是否应该写入字节,字或双字. dword ptr的意思是写一个双字".是的,它代表指针,因为您将内存地址作为目的地.

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.

这篇关于在组装中,"PTR"代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆