亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? s03_04.htm

?? Programmer s Reference Manual is an improtant book on Intel processor architecture and programming.
?? HTM
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><HTML><HEAD><TITLE>80386 Programmer's Reference Manual -- Section 3.4</TITLE></HEAD><BODY><B>up:</B> <A HREF="c03.htm">Chapter 3 -- Applications Instruction Set</A><BR><B>prev:</B> <A HREF="s03_03.htm">3.3  Decimal Arithmetic Instructions</A><BR><B>next:</B> <A HREF="s03_05.htm">3.5  Control Transfer Instructions</A><P><HR><P><H1>3.4  Logical Instructions</H1>The group of logical instructions includes:<UL><LI> The Boolean operation instructions<LI> Bit test and modify instructions<LI> Bit scan instructions<LI> Rotate and shift instructions<LI> Byte set on condition</UL><H2>3.4.1  Boolean Operation Instructions</H2>The logical operations are <A HREF="AND.htm">AND</A>, <A HREF="OR.htm">OR</A>, <A HREF="XOR.htm">XOR</A>, and <A HREF="NOT.htm">NOT</A>.<P><A HREF="NOT.htm">NOT</A> (Not) inverts the bits in the specified operand to form a one'scomplement of the operand. The <A HREF="NOT.htm">NOT</A> instruction is a unary operation thatuses a single operand in a register or memory. <A HREF="NOT.htm">NOT</A> has no effect on theflags.<P>The <A HREF="AND.htm">AND</A>, <A HREF="OR.htm">OR</A>, and <A HREF="XOR.htm">XOR</A> instructions perform the standard logical operations"and", "(inclusive) or", and "exclusive or". These instructions can use thefollowing combinations of operands:<UL><LI> Two register operands<LI> A general register operand with a memory operand<LI> An immediate operand with either a general register operand or amemory operand.</UL><A HREF="AND.htm">AND</A>, <A HREF="OR.htm">OR</A>, and <A HREF="XOR.htm">XOR</A> clear OF and CF, leave AF undefined, and update SF, ZF, and PF.<H2>3.4.2  Bit Test and Modify Instructions</H2>This group of instructions operates on a single bit which can be in memoryor in a general register. The location of the bit is specified as an offsetfrom the low-order end of the operand. The value of the offset either may begiven by an immediate byte in the instruction or may be contained in ageneral register.<P>These instructions first assign the value of the selected bit to CF, thecarry flag. Then a new value is assigned to the selected bit, as determinedby the operation. OF, SF, ZF, AF, PF are left in an undefined state. Table3-1 defines these instructions.<PRE>Table 3-1. Bit Test and Modify InstructionsInstruction                      Effect on CF            Effect on                                                         Selected BitBit (Bit Test)                   CF := BIT                (none)BTS (Bit Test and Set)           CF := BIT                BIT := 1BTR (Bit Test and Reset)         CF := BIT                BIT := 0BTC (Bit Test and Complement)    CF := BIT                BIT := NOT(BIT)</PRE><H2>3.4.3  Bit Scan Instructions</H2>These instructions scan a word or doubleword for a one-bit and store theindex of the first set bit into a register.  The bit string being scannedmay be either in a register or in memory. The ZF flag is set if the entireword is zero (no set bits are found); ZF is cleared if a one-bit is found.If no set bit is found, the value of the destination register is undefined.<P><A HREF="BSF.htm">BSF</A> (Bit Scan Forward) scans from low-order to high-order (starting from bit index zero).<P><A HREF="BSR.htm">BSR</A> (Bit Scan Reverse) scans from high-order to low-order (starting frombit index 15 of a word or index 31 of a doubleword).<H2>3.4.4  Shift and Rotate Instructions</H2>The shift and rotate instructions reposition the bits within the specifiedoperand.<P>These instructions fall into the following classes:<UL><LI> Shift instructions<LI> Double shift instructions<LI> Rotate instructions</UL><H3>3.4.4.1  Shift Instructions</H3>The bits in bytes, words, and doublewords may be shifted arithmetically orlogically. Depending on the value of a specified count, bits can be shiftedup to 31 places.<P>A shift instruction can specify the count in one of three ways. One form ofshift instruction implicitly specifies the count as a single shift. Thesecond form specifies the count as an immediate value. The third formspecifies the count as the value contained in CL. This last form allows theshift count to be a variable that the program supplies during execution.Only the low order 5 bits of CL are used.<P>CF always contains the value of the last bit shifted out of the destinationoperand. In a single-bit shift, OF is set if the value of the high-order(sign) bit was changed by the operation. Otherwise, OF is cleared. Followinga multibit shift, however, the content of OF is always undefined.<P>The shift instructions provide a convenient way to accomplish division ormultiplication by binary power. Note however that division of signed numbersby shifting right is not the same kind of division performed by the <A HREF="IDIV.htm">IDIV</A> instruction.<P><A HREF="SAL.htm">SAL</A> (Shift Arithmetic Left) shifts the destination byte, word, ordoubleword operand left by one or by the number of bits specified in thecount operand (an immediate value or the value contained in CL). Theprocessor shifts zeros in from the right (low-order) side of the operand asbits exit from the left (high-order) side. See <A HREF="#fig3-6">Figure 3-6</A>.<P><A HREF="SAL.htm">SHL</A> (Shift Logical Left) is a synonym for <A HREF="SAL.htm">SAL</A> (refer to <A HREF="SAL.htm">SAL</A>).<P><A HREF="SAL.htm">SHR</A> (Shift Logical Right) shifts the destination byte, word, or doublewordoperand right by one or by the number of bits specified in the count operand(an immediate value or the value contained in CL). The processor shiftszeros in from the left side of the operand as bits exit from the right side.See <A HREF="#fig3-7">Figure 3-7</A>.<P><A HREF="SAL.htm">SAR</A> (Shift Arithmetic Right) shifts the destination byte, word, ordoubleword operand to the right by one or by the number of bits specified inthe count operand (an immediate value or the value contained in CL). Theprocessor preserves the sign of the operand by shifting in zeros on the left(high-order) side if the value is positive or by shifting by ones if thevalue is negative. See <A HREF="#fig3-8">Figure 3-8</A>.<P>Even though this instruction can be used to divide integers by a power oftwo, the type of division is not the same as that produced by the <A HREF="IDIV.htm">IDIV</A>instruction. The quotient of <A HREF="IDIV.htm">IDIV</A> is rounded toward zero, whereas the"quotient" of <A HREF="SAL.htm">SAR</A> is rounded toward negative infinity. This difference isapparent only for negative numbers. For example, when <A HREF="IDIV.htm">IDIV</A> is used to divide-9 by 4, the result is -2 with a remainder of -1. If <A HREF="SAL.htm">SAR</A> is used to shift-9 right by two bits, the result is -3. The "remainder" of this kind ofdivision is +3; however, the <A HREF="SAL.htm">SAR</A> instruction stores only the high-order bitof the remainder (in CF).<P>The code sequence in <A HREF="#fig3-9">Figure 3-9</A>  produces the same result as <A HREF="IDIV.htm">IDIV</A> for any M = 2^(N), where 0 < N < 32. This sequence takes about 12 to 18 clocks,depending on whether the jump is taken; if ECX contains M, the corresponding<A HREF="IDIV.htm">IDIV</A> ECX instruction will take about 43 clocks.<P><A NAME="fig3-6"><IMG align=center SRC="fig3-6.gif" border=0><P><HR><P><A NAME="fig3-7"><IMG align=center SRC="fig3-7.gif" border=0><P><HR><P><A NAME="fig3-8"><IMG align=center SRC="fig3-8.gif" border=0><P><HR><P><A NAME="fig3-9"><IMG align=center SRC="fig3-9.gif" border=0><P><H3>3.4.4.2  Double-Shift Instructions</H3>These instructions provide the basic operations needed to implementoperations on long unaligned bit strings. The double shifts operate eitheron word or doubleword operands, as follows:<OL><LI>Taking two word operands as input and producing a one-word output.<LI>Taking two doubleword operands as input and producing a doublewordoutput.</OL>Of the two input operands, one may either be in a general register or inmemory, while the other may only be in a general register. The resultsreplace the memory or register operand. The number of bits to be shifted isspecified either in the CL register or in an immediate byte of theinstruction.<P>Bits are shifted from the register operand into the memory or registeroperand. CF is set to the value of the last bit shifted out of thedestination operand. SF, ZF, and PF are set according to the value of theresult. OF and AF are left undefined.<P><A HREF="SHLD.htm">SHLD</A> (Shift Left Double) shifts bits of the R/M field to the left, whileshifting high-order bits from the Reg field into the R/M field on the right(see <A HREF="#fig3-10">Figure 3-10</A>). The result is stored back into the R/M operand. The Regfield is not modified.<P><A HREF="SHRD.htm">SHRD</A> (Shift Right Double) shifts bits of the R/M field to the right, whileshifting low-order bits from the Reg field into the R/M field on the left(see <A HREF="#fig3-11">Figure 3-11</A>). The result is stored back into the R/M operand. The Regfield is not modified.<H3>3.4.4.3  Rotate Instructions</H3>Rotate instructions allow bits in bytes, words, and doublewords to berotated. Bits rotated out of an operand are not lost as in a shift, but are"circled" back into the other "end" of the operand.<P>Rotates affect only the carry and overflow flags. CF may act as anextension of the operand in two of the rotate instructions, allowing a bitto be isolated and then tested by a conditional jump instruction (<A HREF="Jcc.htm">JC</A> or<A HREF="Jcc.htm">JNC</A>). CF always contains the value of the last bit rotated out, even if theinstruction does not use this bit as an extension of the rotated operand.<P>In single-bit rotates, OF is set if the operation changes the high-order(sign) bit of the destination operand. If the sign bit retains its originalvalue, OF is cleared. On multibit rotates, the value of OF is alwaysundefined.<P><A HREF="RCL.htm">ROL</A> (Rotate Left) rotates the byte, word, or doubleword destination operandleft by one or by the number of bits specified in the count operand (animmediate value or the value contained in CL). For each rotation specified,the high-order bit that exits from the left of the operand returns at theright to become the new low-order bit of the operand. See <A HREF="#fig3-12">Figure 3-12</A>.<P><A HREF="RCL.htm">ROR</A> (Rotate Right) rotates the byte, word, or doubleword destinationoperand right by one or by the number of bits specified in the count operand(an immediate value or the value contained in CL). For each rotationspecified, the low-order bit that exits from the right of the operandreturns at the left to become the new high-order bit of the operand.See <A HREF="#fig3-13">Figure 3-13</A>.<P><A HREF="RCL.htm">RCL</A> (Rotate Through Carry Left) rotates bits in the byte, word, ordoubleword destination operand left by one or by the number of bitsspecified in the count operand (an immediate value or the value contained inCL).<P>This instruction differs from <A HREF="RCL.htm">ROL</A> in that it treats CF as a high-orderone-bit extension of the destination operand. Each high-order bit that exits

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91免费视频网| 性欧美大战久久久久久久久| 韩国视频一区二区| 日韩午夜精品电影| 国产很黄免费观看久久| 国产农村妇女毛片精品久久麻豆 | 欧美sm美女调教| 精品在线免费观看| 国产亚洲成年网址在线观看| 国产91丝袜在线播放| 综合激情成人伊人| 精品1区2区3区| 久久国产精品区| 日本一区二区不卡视频| 在线观看成人小视频| 天堂一区二区在线| xfplay精品久久| 亚洲综合自拍偷拍| 一区二区三区精密机械公司| 99热精品国产| 成人激情图片网| 亚洲国产成人av网| 精品国精品自拍自在线| 99久久国产综合精品麻豆| 亚洲香蕉伊在人在线观| 欧美电视剧免费观看| 国产成人av一区二区三区在线观看| 亚洲人成精品久久久久| 91精品在线观看入口| 懂色av一区二区三区免费看| 亚洲最新视频在线观看| 久久色中文字幕| 欧美日韩免费观看一区三区| 国产传媒久久文化传媒| 天堂va蜜桃一区二区三区漫画版| 久久精品亚洲麻豆av一区二区 | 欧美主播一区二区三区| 久久不见久久见免费视频7| 日韩毛片精品高清免费| 精品国产乱码久久久久久久| 91小视频免费观看| 久久精品99国产国产精| 亚洲国产视频一区| 中文字幕av一区二区三区免费看| 在线成人免费视频| 91热门视频在线观看| 国内精品在线播放| 丝袜亚洲另类丝袜在线| **性色生活片久久毛片| 国产亚洲精品超碰| 日韩午夜在线观看| 欧美日韩中文国产| 一本到不卡免费一区二区| 国产成人综合亚洲网站| 精品一二线国产| 日本大胆欧美人术艺术动态| 亚洲精品国产无天堂网2021| 国产肉丝袜一区二区| 精品日韩成人av| 日韩欧美一区电影| 日韩三级视频在线观看| 欧美人妖巨大在线| 欧美区一区二区三区| 色婷婷激情久久| 91免费精品国自产拍在线不卡| 国产精品一品二品| 国产在线精品视频| 久久69国产一区二区蜜臀| 日本美女视频一区二区| 日韩国产在线一| 日韩av中文在线观看| 婷婷丁香久久五月婷婷| 亚洲国产欧美一区二区三区丁香婷| 亚洲视频免费观看| 亚洲精选一二三| 亚洲亚洲人成综合网络| 亚洲成av人在线观看| 亚洲五码中文字幕| 日韩国产在线观看一区| 男女男精品视频| 国产一区二区三区久久久| 国产一区美女在线| 国产精品一卡二| 99免费精品在线观看| 在线一区二区视频| 欧美区视频在线观看| 日韩欧美国产成人一区二区| 精品国产乱码久久久久久免费| 精品国产免费人成电影在线观看四季 | 色婷婷亚洲婷婷| 欧美日韩国产影片| 日韩一二三区不卡| 日韩免费高清av| 久久先锋影音av鲁色资源| 国产香蕉久久精品综合网| 中文字幕第一区综合| 亚洲丝袜自拍清纯另类| 亚洲一区二区三区小说| 麻豆精品国产91久久久久久| 国产一区二区三区在线观看免费| 国产成人免费视| 一本一道波多野结衣一区二区| 欧美综合亚洲图片综合区| 日韩欧美亚洲另类制服综合在线| 久久久精品天堂| 亚洲欧美视频在线观看| 老司机午夜精品| 北条麻妃国产九九精品视频| 精品视频资源站| 久久久久国色av免费看影院| 亚洲欧美在线另类| 热久久国产精品| 丁香另类激情小说| 91精品国产综合久久婷婷香蕉 | 欧美一区二区三区免费在线看 | 国产女人aaa级久久久级| 亚洲五码中文字幕| 国产成人精品一区二区三区四区 | 日韩三级伦理片妻子的秘密按摩| 国产肉丝袜一区二区| 亚洲成人自拍一区| 丰满亚洲少妇av| 欧美男女性生活在线直播观看| 国产欧美综合在线观看第十页| 一区二区三区蜜桃网| 国产一区三区三区| 欧美综合一区二区三区| 国产精品青草久久| 奇米在线7777在线精品| 色婷婷久久99综合精品jk白丝 | 亚洲国产精品精华液ab| 欧美老肥妇做.爰bbww| 麻豆中文一区二区| 岛国精品在线观看| 日韩欧美国产一区二区三区| 亚洲欧美日韩国产手机在线| 精品在线视频一区| 欧美日韩久久不卡| 国产精品传媒入口麻豆| 久久99热这里只有精品| 欧美日韩1区2区| 一区二区不卡在线播放 | 91蜜桃网址入口| 欧美精品一区二区高清在线观看| 一区二区三区在线观看国产| 成人高清免费观看| 久久午夜色播影院免费高清 | 国产日韩欧美精品一区| 天堂久久一区二区三区| 欧美自拍偷拍午夜视频| 国产日韩欧美精品在线| 久久不见久久见免费视频1| 在线欧美日韩国产| 成人精品国产一区二区4080| 日韩免费高清av| 肉肉av福利一精品导航| 欧洲av在线精品| 亚洲欧美日韩电影| 91免费看视频| 亚洲男人天堂av| 色综合久久久网| 一区二区三区中文字幕电影 | 制服丝袜亚洲色图| 午夜av电影一区| 欧美日韩一本到| 天堂一区二区在线| 欧美一区二区免费| 另类中文字幕网| 精品99999| 国产精品69久久久久水密桃| 精品国产乱码久久久久久久| 狠狠色丁香九九婷婷综合五月| 日韩欧美一级特黄在线播放| 久久精品国产99久久6| 欧美电影精品一区二区| 国产制服丝袜一区| 中文字幕欧美激情一区| 99久久久久免费精品国产 | 91在线观看免费视频| 久久久久久久综合色一本| 国产综合色精品一区二区三区| 久久综合成人精品亚洲另类欧美 | 另类中文字幕网| 久久精品在线观看| va亚洲va日韩不卡在线观看| 亚洲欧洲精品一区二区三区不卡 | 欧美精品99久久久**| 蜜臀av一区二区在线免费观看| 日韩欧美一区二区三区在线| 国产精品77777| 亚洲乱码国产乱码精品精可以看| 欧美吻胸吃奶大尺度电影| 青娱乐精品在线视频| 久久久久国产精品麻豆ai换脸| 国产精品久久久久一区二区三区| 美腿丝袜亚洲色图| 久久精品人人爽人人爽| 91视频你懂的| 欧美aa在线视频| 国产精品日产欧美久久久久|