首页
社区
课程
招聘
[求助]哪位大哥解释下MASM宏里的这句什么意思??
发表于: 2007-12-1 09:54 3992

[求助]哪位大哥解释下MASM宏里的这句什么意思??

2007-12-1 09:54
3992
哪位大哥解释下MASM宏里的这句什么意思??
IF (OPATTR (mtx)) AND 00010000y

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 321
活跃值: (271)
能力值: ( LV13,RANK:1050 )
在线值:
发帖
回帖
粉丝
2
Syntax:   OPATTR expression

            .TYPE expression

  Description:

     The OPATTR operator returns a one-word constant defining the mode
     and scope of expression. If <expression> is not valid or is forward-
     referenced, OPATTR returns a 0. If <expression> is valid, a
     nonrelocatable word is returned. The .TYPE operator returns only the
     low byte (bits 0-7) of the OPATTR operator and is included for
     compatibility with previous versions of the assembler.

     Bit          Set If
     Position     <expression>

     0            References a code label
     1            Is a memory expression or has a relocatable data
                  label
     2            Is an immediate expression
     3            Uses direct memory addressing
     4            Is a register expression
     5            References no undefined symbols and is without error
     6            Is an SS-relative memory expression
     7            References an external label

     8-10         Language type:

                  Bits     Language

                  000      No language type
                  001      C
                  010      SYSCALL
                  011      STDCALL
                  100      Pascal
                  101      FORTRAN
                  110      Basic

     All other bits (11-15) are undefined and reserved for future expansion.
2007-12-1 20:49
0
游客
登录 | 注册 方可回帖
返回
//