第二,oword和yword操作数的大小是多少? [英] What are the sizes of tword, oword and yword operands?
问题描述
tword
,oword
和yword
操作数的大小是多少,如 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个字节)吗?对于oword
和yword
,我什至都没有想到合理的含义.
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手册中,甚至在DQ
,DT
,DY
,RESQ
,REST
,RESY
伪指令中也没有说明这些大小.我在某处读到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位):
byte
,DB
,RESB
- 2个字节(16位):
word
,DW
,RESW
- 4个字节(32位):
dword
,DD
,RESD
- 8个字节(64位):
qword
,DQ
,RESQ
- 10个字节(80位):
tword
,DT
,REST
- 16个字节(128位):
oword
,DO
,RESO
,DDQ
,RESDQ
- 32个字节(256位):
yword
,DY
,RESY
- 64个字节(512位):
zword
,DZ
,RESZ
- 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