Advanced Debugging
About AdvDbg Consult Train Services Products Tools Community Contact  
欢迎光临 高端调试 登录 | 注册 | FAQ
 
  ACPI调试
Linux内核调试
Windows内核调试
 
  调试战役
调试原理
新工具观察
 
  Linux
Windows Vista
Windows
 
  Linux驱动
WDF
WDM
 
  PCI Express
PCI/PCI-X
USB
无线通信协议
 
  64位CPU
ARM
IA-32
  CPU Info Center
 
  ACPI标准
系统认证
Desktop
服务器
 
  Embedded Linux
嵌入式开发工具
VxWorks
WinCE
嵌入式Windows
 
  格蠹调试套件(GDK)
  格蠹学院
  小朱书店
  老雷的微博
  《软件调试》
  《格蠹汇编》
  《软件调试(第二版)》
沪ICP备11027180号-1

WinDbg

帖子发起人: sgyhm   发起时间: 2007-04-03 20:31 下午   回复: 0

Print Search
帖子排序:    
   2007-04-03, 20:31 下午
sgyhm 离线,最后访问时间: 2007/6/24 9:14:32 sgyhm

发帖数前75位
注册: 2007-02-09
发 贴: 16
能否为我解释下by和poi指令
Reply Quote

请问下Windbg help里的这条指令什么意思?

MASM Numbers and Operators

Numeric Operators in MASM Expressions

Any component of an expression can be modified with a unary operator, and any two components can be combined with a binary operator. Unary operators take precedence over binary operators. When multiple binary operators are used, they follow fixed precedence rules.

Parentheses can always be used to override precedence rules.

If part of a MASM expression is enclosed in parentheses and prefixed by a double at sign — @@( ... ) — it will be interpreted according to C++ expression rules. There can be no space between the double at sign and the opening parenthesis. You can also specify the expression evaluator by using @@c++( ... ) or @@masm( ... ).

When performing arithmetic computations, the MASM expression evaluator will treat all numbers and symbols as ULONG64 types.

Unary address operators assume DS as the default segment for addresses. Expressions are evaluated in order of operator precedence. If adjacent operators have equal precedence, the expression is evaluated from left to right.

The unary operators are:

Operator Meaning
+ Unary plus
- Unary minus
not Returns 1 if the argument is zero; returns zero for any nonzero argument
hi High 16 bits
low Low 16 bits
by Low-order byte from specified address
wo Low-order word from specified address
dwo Double-word from specified address
qwo Quad-word from specified address
poi Pointer-sized data from specified address. The pointer size is either 32 bits or 64 bits. In kernel debugging, this is based on the processor of the target computer. In user-mode debugging on an Intel Itanium computer, this will be either 32 bits or 64 bits in size, depending on the target application. Therefore poi is the best operator to use if you want pointer-sized data.

 

不明白其中的by指令做什么用的,什么叫Low-order byte from specified address?

至于poi似乎是用来做指针的,具体如何使用能给我个例子么?

抱歉提这类基本问题。


IP 地址: 已记录   报告
高端调试 » 软件调试 » WinDbg » 能否为我解释下by和poi指令

 
Legal Notice Privacy Statement Corporate Governance Corporate Governance
(C)2004-2020 ADVDBG.ORG All Rights Reserved.