I was compiling code for fun (well, it was to test my Sublime Text syntax highlighter out), and I noticed the .zero directive in my .s file, which I missed. Upon further investigation, I found that, indeed, the manual site "https://sourceware.org/binutils/docs/as/index.html" does not make any mention of it. I guess this sets the specified number of bytes to zero?
Created attachment 8288 [details] Describe the .zero pseudo-op
Hi, > Upon further investigation, I found that, indeed, the manual site > "https://sourceware.org/binutils/docs/as/index.html" does not make any > mention of it. I guess this sets the specified number of bytes to zero? Exactly right. What do you think of this description: 7.104 '.zero SIZE' ================== This directive emits SIZE 0-valued bytes. SIZE must be an absolute expression. This directive is actually an alias for the '.skip' directive so in can take an optional second argument of the value to store in the bytes instead of zero. Using '.zero' in this way would be confusing however. Cheers Nick
(In reply to Nick Clifton from comment #2) > Hi, > > > Upon further investigation, I found that, indeed, the manual site > > "https://sourceware.org/binutils/docs/as/index.html" does not make any > > mention of it. I guess this sets the specified number of bytes to zero? > > Exactly right. What do you think of this description: > > 7.104 '.zero SIZE' > ================== > > This directive emits SIZE 0-valued bytes. SIZE must be an absolute > expression. This directive is actually an alias for the '.skip' > directive so in can take an optional second argument of the value to > store in the bytes instead of zero. Using '.zero' in this way would be > confusing however. > > Cheers > Nick I think it looks good.
The master branch has been updated by Nick Clifton <nickc@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7ce98c164ed42df085c1b3e08c5261e02320149b commit 7ce98c164ed42df085c1b3e08c5261e02320149b Author: Nick Clifton <nickc@redhat.com> Date: Thu Apr 30 10:13:53 2015 +0100 Adds documentation of GAS's .zero directive. PR gas/18353 * doc/as.texinfo (Zero): Add documentation of the .zero pseudo-op.
Patch committed.