第二,oword和yword操作数的大小是多少? [英] What are the sizes of tword, oword and yword operands?

查看:202
本文介绍了第二,oword和yword操作数的大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

twordowordyword操作数的大小是多少,如 YASM手册?在相关说明中,这些名称是否有花招或基本概念?有没有办法为较大的单词大小赋予逻辑名称?

What are the sizes of tword, oword and yword operands, as used in the NASM/YASM manual? And on a related note, is there a trick or underlying idea to these names? Is there a way by which bigger word sizes are given logical names?

我知道,尽管系统之间的字长可能有所不同,但NASM word是2字节,dword是2字节(4字节)的两倍,qword是四字(8字节),但是... tword三词(6个字节)吗?对于owordyword,我什至都没有想到合理的含义.

I know that while word sizes may differ between systems, a NASM word is 2 bytes, dword is double that (4 bytes), qword is a quad word (8 bytes), but... is tword a triple word (6 bytes)? And for oword and yword I can't even think of a plausible meaning.

请注意,这可能是一个简单的问题,但我找不到答案.在NASM和YASM手册中,甚至在DQDTDYRESQRESTRESY伪指令中也没有说明这些大小.我在某处读到MASM使用类似的系统,但也找不到任何内容.

Note that it is probably an easy question, but I couldn't find an answer. In the NASM and YASM manuals these sizes are not explained, not even at the DQ, DT, DY, RESQ, REST, RESY pseudo-instructions. I read somewhere that MASM uses a similar system, but could not find anything on that either.

根据答案,这是完整的列表:

Based on the answers, this is the complete list:

  • 1个字节(8位):byteDBRESB
  • 2个字节(16位):wordDWRESW
  • 4个字节(32位):dwordDDRESD
  • 8个字节(64位):qwordDQRESQ
  • 10个字节(80位):twordDTREST
  • 16个字节(128位):owordDORESODDQRESDQ
  • 32个字节(256位):ywordDYRESY
  • 64个字节(512位):zwordDZRESZ
  • 1 byte (8 bit): byte, DB, RESB
  • 2 bytes (16 bit): word, DW, RESW
  • 4 bytes (32 bit): dword, DD, RESD
  • 8 bytes (64 bit): qword, DQ, RESQ
  • 10 bytes (80 bit): tword, DT, REST
  • 16 bytes (128 bit): oword, DO, RESO, DDQ, RESDQ
  • 32 bytes (256 bit): yword, DY, RESY
  • 64 bytes (512 bit): zword, DZ, RESZ

推荐答案

查看

  • 'oword'/'DO'的大小是"word"的8倍(" o ctoword"为O),与dqword("double-quad")同义;这将是128位,对应于SSE向量寄存器的大小.
  • 'tword'/'DT'为80位(T表示" t en字节",T为整数),是Intel x87浮点寄存器的完整大小.
  • 'yword'/'DY'是256位,并且Intel AVX扩展中256位矢量寄存器的YMM名称的Y可能是助记符.
  • "zword"/"DZ"为512位,Z为Intel AVX-512扩展中512位矢量寄存器的ZMM名称.
    • 'oword'/'DO' is 8 times as big as "word" (O for "octoword"), synonymous with dqword ("double-quad"); that would be 128 bits, corresponding to the size of an SSE vector register.
    • 'tword'/'DT' is 80 bits (T for "ten bytes"), the full size of an Intel x87 floating point register.
    • 'yword'/'DY' is 256 bits, and the Y is presumably mnemonic for the YMM names of the 256-bit vector registers in the Intel AVX extensions.
    • 'zword'/'DZ' is 512 bits, Z for the ZMM names of the 512-bit vector registers in the Intel AVX-512 extensions.

    因此,这不完全是逻辑上的命名约定. 它刚刚长大".

    So, it's not exactly a logical naming convention; "it just growed".

    这篇关于第二,oword和yword操作数的大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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