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

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

?? nasmdoc5.htm

?? nasm手冊(cè) 大家可以看看 對(duì)要寫(xiě)匯編程序的幫助很大
?? HTM
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
<html><head><title>NASM Manual</title></head><body><h1 align=center>The Netwide Assembler: NASM</h1><p align=center><a href="nasmdoc6.html">Next Chapter</a> |<a href="nasmdoc4.html">Previous Chapter</a> |<a href="nasmdoc0.html">Contents</a> |<a href="nasmdoci.html">Index</a><h2><a name="chapter-5">Chapter 5: Assembler Directives</a></h2><p>NASM, though it attempts to avoid the bureaucracy of assemblers likeMASM and TASM, is nevertheless forced to support a <em>few</em> directives.These are described in this chapter.<p>NASM's directives come in two types: <em>user-level</em> directives and<em>primitive</em> directives. Typically, each directive has a user-levelform and a primitive form. In almost all cases, we recommend that users usethe user-level forms of the directives, which are implemented as macroswhich call the primitive forms.<p>Primitive directives are enclosed in square brackets; user-leveldirectives are not.<p>In addition to the universal directives described in this chapter, eachobject file format can optionally supply extra directives in order tocontrol particular features of that file format. These<em>format-specific</em> directives are documented along with the formatsthat implement them, in <a href="nasmdoc6.html">chapter 6</a>.<h3><a name="section-5.1">5.1 <code><nobr>BITS</nobr></code>: Specifying Target Processor Mode</a></h3><p>The <code><nobr>BITS</nobr></code> directive specifies whether NASMshould generate code designed to run on a processor operating in 16-bitmode, or code designed to run on a processor operating in 32-bit mode. Thesyntax is <code><nobr>BITS 16</nobr></code> or<code><nobr>BITS 32</nobr></code>.<p>In most cases, you should not need to use <code><nobr>BITS</nobr></code>explicitly. The <code><nobr>aout</nobr></code>,<code><nobr>coff</nobr></code>, <code><nobr>elf</nobr></code> and<code><nobr>win32</nobr></code> object formats, which are designed for usein 32-bit operating systems, all cause NASM to select 32-bit mode bydefault. The <code><nobr>obj</nobr></code> object format allows you tospecify each segment you define as either <code><nobr>USE16</nobr></code>or <code><nobr>USE32</nobr></code>, and NASM will set its operating modeaccordingly, so the use of the <code><nobr>BITS</nobr></code> directive isonce again unnecessary.<p>The most likely reason for using the <code><nobr>BITS</nobr></code>directive is to write 32-bit code in a flat binary file; this is becausethe <code><nobr>bin</nobr></code> output format defaults to 16-bit mode inanticipation of it being used most frequently to write DOS<code><nobr>.COM</nobr></code> programs, DOS <code><nobr>.SYS</nobr></code>device drivers and boot loader software.<p>You do <em>not</em> need to specify <code><nobr>BITS 32</nobr></code>merely in order to use 32-bit instructions in a 16-bit DOS program; if youdo, the assembler will generate incorrect code because it will be writingcode targeted at a 32-bit platform, to be run on a 16-bit one.<p>When NASM is in <code><nobr>BITS 16</nobr></code> state, instructionswhich use 32-bit data are prefixed with an 0x66 byte, and those referringto 32-bit addresses have an 0x67 prefix. In<code><nobr>BITS 32</nobr></code> state, the reverse is true: 32-bitinstructions require no prefixes, whereas instructions using 16-bit dataneed an 0x66 and those working on 16-bit addresses need an 0x67.<p>The <code><nobr>BITS</nobr></code> directive has an exactly equivalentprimitive form, <code><nobr>[BITS 16]</nobr></code> and<code><nobr>[BITS 32]</nobr></code>. The user-level form is a macro whichhas no function other than to call the primitive form.<p>Note that the space is neccessary, <code><nobr>BITS32</nobr></code> will<em>not</em> work!<h4><a name="section-5.1.1">5.1.1 <code><nobr>USE16</nobr></code> &amp; <code><nobr>USE32</nobr></code>: Aliases for BITS</a></h4><p>The `<code><nobr>USE16</nobr></code>' and`<code><nobr>USE32</nobr></code>' directives can be used in place of`<code><nobr>BITS 16</nobr></code>' and`<code><nobr>BITS 32</nobr></code>', for compatibility with otherassemblers.<h3><a name="section-5.2">5.2 <code><nobr>SECTION</nobr></code> or <code><nobr>SEGMENT</nobr></code>: Changing and Defining Sections</a></h3><p>The <code><nobr>SECTION</nobr></code> directive(<code><nobr>SEGMENT</nobr></code> is an exactly equivalent synonym)changes which section of the output file the code you write will beassembled into. In some object file formats, the number and names ofsections are fixed; in others, the user may make up as many as they wish.Hence <code><nobr>SECTION</nobr></code> may sometimes give an errormessage, or may define a new section, if you try to switch to a sectionthat does not (yet) exist.<p>The Unix object formats, and the <code><nobr>bin</nobr></code> objectformat (but see <a href="nasmdoc6.html#section-6.1.3">section 6.1.3</a>,all support the standardised section names <code><nobr>.text</nobr></code>,<code><nobr>.data</nobr></code> and <code><nobr>.bss</nobr></code> for thecode, data and uninitialised-data sections. The<code><nobr>obj</nobr></code> format, by contrast, does not recognise thesesection names as being special, and indeed will strip off the leadingperiod of any section name that has one.<h4><a name="section-5.2.1">5.2.1 The <code><nobr>__SECT__</nobr></code> Macro</a></h4><p>The <code><nobr>SECTION</nobr></code> directive is unusual in that itsuser-level form functions differently from its primitive form. Theprimitive form, <code><nobr>[SECTION xyz]</nobr></code>, simply switchesthe current target section to the one given. The user-level form,<code><nobr>SECTION xyz</nobr></code>, however, first defines thesingle-line macro <code><nobr>__SECT__</nobr></code> to be the primitive<code><nobr>[SECTION]</nobr></code> directive which it is about to issue,and then issues it. So the user-level directive<p><pre>        SECTION .text</pre><p>expands to the two lines<p><pre>%define __SECT__        [SECTION .text]         [SECTION .text]</pre><p>Users may find it useful to make use of this in their own macros. Forexample, the <code><nobr>writefile</nobr></code> macro defined in<a href="nasmdoc4.html#section-4.3.3">section 4.3.3</a> can be usefullyrewritten in the following more sophisticated form:<p><pre>%macro  writefile 2+         [section .data]   %%str:        db      %2   %%endstr:         __SECT__         mov     dx,%%str         mov     cx,%%endstr-%%str         mov     bx,%1         mov     ah,0x40         int     0x21 %endmacro</pre><p>This form of the macro, once passed a string to output, first switchestemporarily to the data section of the file, using the primitive form ofthe <code><nobr>SECTION</nobr></code> directive so as not to modify<code><nobr>__SECT__</nobr></code>. It then declares its string in the datasection, and then invokes <code><nobr>__SECT__</nobr></code> to switch backto <em>whichever</em> section the user was previously working in. It thusavoids the need, in the previous version of the macro, to include a<code><nobr>JMP</nobr></code> instruction to jump over the data, and alsodoes not fail if, in a complicated <code><nobr>OBJ</nobr></code> formatmodule, the user could potentially be assembling the code in any of severalseparate code sections.<h3><a name="section-5.3">5.3 <code><nobr>ABSOLUTE</nobr></code>: Defining Absolute Labels</a></h3><p>The <code><nobr>ABSOLUTE</nobr></code> directive can be thought of as analternative form of <code><nobr>SECTION</nobr></code>: it causes thesubsequent code to be directed at no physical section, but at thehypothetical section starting at the given absolute address. The onlyinstructions you can use in this mode are the<code><nobr>RESB</nobr></code> family.<p><code><nobr>ABSOLUTE</nobr></code> is used as follows:<p><pre>absolute 0x1A     kbuf_chr    resw    1     kbuf_free   resw    1     kbuf        resw    16</pre><p>This example describes a section of the PC BIOS data area, at segmentaddress 0x40: the above code defines <code><nobr>kbuf_chr</nobr></code> tobe 0x1A, <code><nobr>kbuf_free</nobr></code> to be 0x1C, and<code><nobr>kbuf</nobr></code> to be 0x1E.<p>The user-level form of <code><nobr>ABSOLUTE</nobr></code>, like that of<code><nobr>SECTION</nobr></code>, redefines the

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产视频一区二区在线观看| 亚洲天堂久久久久久久| 成人高清视频在线| 久久精品国产99| 综合在线观看色| 精品国产伦一区二区三区免费| 色综合天天综合网天天看片| 国产精一区二区三区| 亚洲777理论| 亚洲激情一二三区| 国产色综合一区| 日韩欧美国产综合在线一区二区三区 | 欧美精品一区二区三区在线播放 | 成人性视频免费网站| 日韩成人一级大片| 亚洲一区二区三区四区的| 日本一区二区视频在线| 精品乱人伦小说| 3d成人h动漫网站入口| 欧美私人免费视频| 91麻豆精品在线观看| 国产成人精品aa毛片| 国产一区二区精品久久| 久久激情五月婷婷| 青娱乐精品在线视频| 日韩制服丝袜先锋影音| 香蕉av福利精品导航| 亚洲国产婷婷综合在线精品| 亚洲人成影院在线观看| 亚洲人一二三区| 日韩毛片高清在线播放| ...中文天堂在线一区| 国产精品欧美精品| 综合久久久久久久| 日韩美女视频19| 亚洲精品v日韩精品| 一区二区三区日本| 亚洲午夜私人影院| 亚洲高清在线精品| 日韩av一区二区三区| 日韩1区2区3区| 久久er99精品| 国产在线视频不卡二| 国产真实乱对白精彩久久| 韩国三级在线一区| 国产成人99久久亚洲综合精品| 国产一区二区三区久久悠悠色av | 极品少妇一区二区三区精品视频 | 欧美精品xxxxbbbb| 欧美丝袜丝nylons| 制服丝袜成人动漫| 欧美va亚洲va国产综合| 久久人人爽人人爽| 国产精品福利一区二区三区| 亚洲免费看黄网站| 日韩高清在线一区| 国产麻豆精品theporn| 国产成a人亚洲精| 91亚洲午夜精品久久久久久| 欧美视频中文字幕| 精品国产一区a| 国产精品欧美经典| 亚洲va在线va天堂| 黄页视频在线91| www.日韩av| 欧美日本不卡视频| 久久综合网色—综合色88| 中文字幕一区二区三中文字幕| 一个色妞综合视频在线观看| 蜜桃久久精品一区二区| 丰满亚洲少妇av| 欧美私人免费视频| 国产欧美日本一区视频| 亚洲资源中文字幕| 国产一区二区三区精品欧美日韩一区二区三区 | 国产欧美日韩综合| 夜夜爽夜夜爽精品视频| 奇米色一区二区| 99综合电影在线视频| 91精品国产综合久久精品性色| 久久久久久久久久久黄色| 亚洲一区二区av电影| 国产精品18久久久久久久网站| 91黄色免费观看| www成人在线观看| 亚洲免费三区一区二区| 国产在线播放一区三区四| 在线免费不卡视频| 国产丝袜欧美中文另类| 日本在线播放一区二区三区| 成人av在线资源| 日韩精品一区国产麻豆| 亚洲黄色尤物视频| 国产福利视频一区二区三区| 欧美日韩卡一卡二| 国产精品乱码妇女bbbb| 蜜桃av一区二区三区| 色菇凉天天综合网| 国产精品热久久久久夜色精品三区 | 日韩av网站免费在线| 99re视频这里只有精品| 精品国产一区二区三区四区四| 亚洲最新视频在线观看| 99久久er热在这里只有精品66| 欧美大片在线观看一区二区| 亚洲sss视频在线视频| 色综合天天狠狠| 欧美国产禁国产网站cc| 麻豆国产91在线播放| 欧美高清视频不卡网| 亚洲三级免费观看| 99久久精品国产观看| 国产精品美女一区二区三区| 久久99热狠狠色一区二区| 欧美疯狂做受xxxx富婆| 亚洲午夜一区二区三区| 91国偷自产一区二区使用方法| 亚洲国产精品av| 国产高清不卡一区| 国产三级精品三级在线专区| 精品伊人久久久久7777人| 欧美一级生活片| 日韩国产在线一| 欧美日韩美少妇| 日日夜夜免费精品| 欧美日韩国产在线观看| 亚洲一二三四在线| 欧美日韩精品福利| 日日嗨av一区二区三区四区| 欧美一区二区视频在线观看 | 狠狠色狠狠色综合系列| 日韩一级片在线观看| 人人爽香蕉精品| 欧美一区二区啪啪| 蜜臀av性久久久久蜜臀aⅴ四虎| 91精品国产黑色紧身裤美女| 日本在线播放一区二区三区| 日韩精品一区在线| 国产真实乱子伦精品视频| 国产三级一区二区三区| 成人性生交大片免费| 国产精品久久午夜夜伦鲁鲁| 91网上在线视频| 亚洲高清三级视频| 欧美一区二区网站| 国产真实乱子伦精品视频| 欧美国产日本韩| 91麻豆精东视频| 日韩精品1区2区3区| 精品福利在线导航| 成人妖精视频yjsp地址| 亚洲精品视频一区二区| 欧美日韩成人一区二区| 日韩精品乱码av一区二区| 欧美不卡在线视频| 成人精品视频一区二区三区尤物| 亚洲图片另类小说| 精品视频全国免费看| 久久精品99国产精品日本| 欧美国产日本韩| 欧美四级电影网| 黄一区二区三区| 综合婷婷亚洲小说| 91精品国产一区二区| 国产不卡视频在线播放| 亚洲欧美激情插| 6080午夜不卡| 成人综合激情网| 亚洲一区二区三区四区在线免费观看| 7777精品伊人久久久大香线蕉经典版下载 | 国产精品一色哟哟哟| 国产精品精品国产色婷婷| 欧美在线999| 韩国女主播成人在线观看| 成人免费在线观看入口| 欧美高清你懂得| 北条麻妃国产九九精品视频| 天天综合色天天综合色h| 久久奇米777| 欧美日韩精品高清| 粉嫩av亚洲一区二区图片| 亚洲国产成人高清精品| 国产亚洲欧美色| 欧美日韩精品是欧美日韩精品| 国产福利一区二区三区视频在线| 一区二区成人在线视频| 国产亚洲精品超碰| 欧美日本高清视频在线观看| 成人免费毛片嘿嘿连载视频| 日韩国产高清在线| 亚洲精品菠萝久久久久久久| 精品乱码亚洲一区二区不卡| 欧美图区在线视频| 成人免费av资源| 捆绑紧缚一区二区三区视频| 亚洲婷婷综合久久一本伊一区| 日韩欧美一区二区免费| 在线观看网站黄不卡| 成人在线视频一区二区| 久久精工是国产品牌吗|