Original http://blog.csdn.net/bigloomy/article/details/6581754
Att assembly and 8086 assembly language, although the two are very similar, but still cannot read att Assembly according to the 8086 syntax rules, so we still need to look at the syntax rules of att assembly, when reading the kernel code, some of the Code that deals with hardware is compiled by
.
Binary Attribute Selector
1. E [att ^ = "val"]: select an Eelement of a string with the att attribute and the attribute value starting with val.
2. E [att $ = "val"]: select an Eelement with the att attribute and the attribute value is a string ending with val.
3. E [att *
9.
E [att]
Matches all the eElements with the att attribute, regardless of its value. (Note: E can be omitted here, for example, "[cheacked]". .)
10.
E [att = val]
Matches all the eElements whose att attribute is equal to "val ".
11.
E [at
Recently, a key part of the C language algorithm needs to be implemented in assembly language. In Linux, ATT assembly is basically used for Embedded Assembly. For example, ATT assembly is used for Linux system startup. I have studied ATT assembly before, but I have forgotten it after a while, but I am familiar with Intel assembly basics. The two are basically sim
simultaneously. Separate E and F with commas (,).
6.
E F
The descendant element selector matches all f elements belonging to the descendant of the Eelement. E and F are separated by spaces.
7.
E> F
Child element selector, matching the child element F of all eElements
8.
E + F
Adjacent to the element selector, matching all elements of the same level F that follow the Eelement
Instance:
Div P {color: # f00 ;}
# Nav Li {display: inline ;}
# Na
element, such as p: first-of-type, is the first of all the child elements of the p type. It is no longer the first child element, as long as it is the first element of this type. Attention: of course, these elements belong to the same level, that is, their peers. The same type of selector: last-child and: last-of-type,: nth-child (n) and: nth-of-type (n) can also be understood in this way.
[Attribute selector]Version description
E [att]CSS2 select an
Element Selector
E (an Element)
ID (using #id)
. class (using. Class)
Wildcard characters *
Relationship Selector
Contains E F (e First all F contains descendants, grandchildren, etc.)
Sub-selector e
Adjacent selector E+f (and e adjacent F, one not counted)
Sibling selector E~f (and e-sibling F)
Property Selector
E[att] (an element with an att att
: #ff0;}
p.info.error {color: #900; font-weight:bold;}
#info {background: #ff0;}
P#info {background: #ff0;}
Combination selector with multiple elements
Serial number
Selector
Meaning
5.
E,f
Multi-element Selector, matching all E or F elements, separated by commas between E and F
6.
E F
Descendant element selector that matches all f elements that are descendants of the e element, separated by a space between E and F
----------------------------------------CSS Selector----------------------------------------1, combination selector:1) e>f: direct descendant selector.2) E+f: Sibling element selector, matching the sibling element F immediately following the E element.3) E~f: matches any of the sibling F elements after the E element.4) E F: descendant selector.5) E,f: Group selector.cation:+ and ~ differences, + can only match one sibling element immediately following it; ~ matches all sibling elements immediate
1. In intel format, most of them use upper-case letters (both in lower case) and lower-case letters in att format.
2. In att format, Register names must be prefixed with "%", which is not required in intel.
3. The original operation of the command is different from that of the destination operand. For example, if the eax value is passed into the EBX command, in Intel, the target is in the front, and the
the file content. After decryption, the original file will be overwritten./// /// Public static void decryptfile (string sourcefile){Decryptfile (sourcefile, sourcefile );}
# Endregion
Read/write encrypted XML or TXT
# Region read and operate the Assembly (XML file)Public static void savexml (string connenctionstring, string strkey) // write dynamic database configuration information{Commonclass. decryptfile (filepath );Xmldocument Doc = new xmldocument ();// Obtain the full path of the
stripslashes ($this->temp_html_body)). " \ r \ n ";
$this->body.= "--" $this->bound_begin. $bound _level $this->bound_end. " --\r\n\r\n ";
$bound _level--;
}
Else
{
$this->body.= "content-type:text/html;\r\n";
$this->body.= "charset=\" $this->charset\ "\ r \ n";
$this->body.= "content-transfer-encoding:base64 \ r \ n";
$this->body.= "\ r \ n" Chunk_split (Base64_encode stripslashes ($this->temp_html_body)). " \ r \ n ";
//Body code, with or without text, in a different format.
}//End Else
}
el
The Att assembly is an assembly language that is completely different from that of Intel, in order to avoid confusing Intel syntax, this article only introduces the Att assembly, the following is all registers, the first feature of Att is that each register name must be added '% ', Immediately before the number must be added ' $ ': (below omitted%)
8 32-bit regis
The number of attacks equals to the total number of attacks minus the number of successful defenses
This question is mainly used to calculate the number of successful defenses.
Add an auxiliary array pos [] to record the number of attacks at a certain point after the last query (the first attack can be defended)
Every defensive hold once, the t0-1 attack, continue to judge the next t0 attack has included (that is, the attack to) Ask the point
Some people say that the complexity is O (n ^ 2). The
included. The impact of code size is unpredictable, depending on the specific situation. To declare an inline function, we must use the "inline" keyword in the function declaration.Now we are at a point where we guess exactly what inline assembly is. It is just an assembly program written as an inline function. They are convenient, fast, and extremely useful in system programming. We mainly focus on the basic formats and usage of (GCC) inline assembler functions. To declare inline assembler fun
A small tutorial on Embedded Assembly syntax format used by Gcc-Linux general technology-Linux programming and kernel information. The following is a detailed description. Small tutorial on Embedded Assembly syntax format used by Gcc
This article describes the Embedded Assembly syntax in detail from the basic syntax, the format of embedded assembly, and the extended Embedded Assembly format. It should be noted that gcc uses att's Assembly format.
Basic syntax
There are several differences in sy
div
Elemen~ telement
DIV~SPAN
A sibling element selector that matches the sibling span elements behind all the div, and can be separated by other elements
[Attribute]
[ATT]
All elements containing the ATT attribute
[Attribute=vlaue]
DIV [att= ' Val ']
Match all the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.