Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Assembly 源字节;这是源字符串";,0源DUP的目标字节大小(0),0_Assembly_X86_Masm - Fatal编程技术网

Assembly 源字节;这是源字符串";,0源DUP的目标字节大小(0),0

Assembly 源字节;这是源字符串";,0源DUP的目标字节大小(0),0,assembly,x86,masm,Assembly,X86,Masm,SIZEOF指的是什么?它是指源的大小(lengthOf*类型等于数组中的元素数*每个元素的大小)?还有,有人能解释DUP(0),0吗?这是指组件x86 MASM。谢谢SIZEOF仅表示 它指的是在关键字SIZEOF之后放置的任何内容 SIZEOF element ; refers to a single element in the array. SIZEOF wholearray ; sizeof(element) * number_of_elements_in_array.

SIZEOF指的是什么?它是指源的大小(lengthOf*类型等于数组中的元素数*每个元素的大小)?还有,有人能解释DUP(0),0吗?这是指组件x86 MASM。谢谢

SIZEOF
仅表示

它指的是在关键字
SIZEOF
之后放置的任何内容

SIZEOF element     ; refers to a single element in the array.  
SIZEOF wholearray  ; sizeof(element) * number_of_elements_in_array.
因为它是在编译时解析的,所以只有当数组的大小是静态的时,它才会工作

首先是重复计数,然后是关键字
DUP
,然后是括号中重复内容的说明。
重复规范可能包括附加的
DUP
语句

count DUP (initialvalue [[, initialvalue]]...)

10 DUP (0)        ; 10 zero's
2 DUP (3 DUP ("A"), "BC")  ; "AAABCAAABC"