The following code illustrates the use and behavior of the section directives .text, .section, .pushsection, .popsection, and .previous:
Example: Code Sequence Using Section Directives |
---|
.text //Default .section A //Makes A the current section. .pushsection B //Pushes A onto the stack and makes B the .pushsection C //Pushes B onto stack and makes C the current .popsection //Pops B from stack and makes it current. .popsection //Pops A from stack and makes it current. .previous //Makes A’s previously current section .text the .previous //Makes A the current section, .text becomes A’s |