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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? nasmdoc6.htm

?? nasm手冊 大家可以看看 對要寫匯編程序的幫助很大
?? HTM
?? 第 1 頁 / 共 4 頁
字號:
<html><head><title>NASM Manual</title></head><body><h1 align=center>The Netwide Assembler: NASM</h1><p align=center><a href="nasmdoc7.html">Next Chapter</a> |<a href="nasmdoc5.html">Previous Chapter</a> |<a href="nasmdoc0.html">Contents</a> |<a href="nasmdoci.html">Index</a><h2><a name="chapter-6">Chapter 6: Output Formats</a></h2><p>NASM is a portable assembler, designed to be able to compile on any ANSIC-supporting platform and produce output to run on a variety of Intel x86operating systems. For this reason, it has a large number of availableoutput formats, selected using the <code><nobr>-f</nobr></code> option onthe NASM command line. Each of these formats, along with its extensions tothe base NASM syntax, is detailed in this chapter.<p>As stated in <a href="nasmdoc2.html#section-2.1.1">section 2.1.1</a>,NASM chooses a default name for your output file based on the input filename and the chosen output format. This will be generated by removing theextension (<code><nobr>.asm</nobr></code>, <code><nobr>.s</nobr></code>, orwhatever you like to use) from the input file name, and substituting anextension defined by the output format. The extensions are given with eachformat below.<h3><a name="section-6.1">6.1 <code><nobr>bin</nobr></code>: Flat-Form Binary Output</a></h3><p>The <code><nobr>bin</nobr></code> format does not produce object files:it generates nothing in the output file except the code you wrote. Such`pure binary' files are used by MS-DOS: <code><nobr>.COM</nobr></code>executables and <code><nobr>.SYS</nobr></code> device drivers are purebinary files. Pure binary output is also useful for operating system andboot loader development.<p>The <code><nobr>bin</nobr></code> format supports multiple sectionnames. For details of how nasm handles sections in the<code><nobr>bin</nobr></code> format, see <a href="#section-6.1.3">section6.1.3</a>.<p>Using the <code><nobr>bin</nobr></code> format puts NASM by default into16-bit mode (see <a href="nasmdoc5.html#section-5.1">section 5.1</a>). Inorder to use <code><nobr>bin</nobr></code> to write 32-bit code such as anOS kernel, you need to explicitly issue the<code><nobr>BITS 32</nobr></code> directive.<p><code><nobr>bin</nobr></code> has no default output file name extension:instead, it leaves your file name as it is once the original extension hasbeen removed. Thus, the default is for NASM to assemble<code><nobr>binprog.asm</nobr></code> into a binary file called<code><nobr>binprog</nobr></code>.<h4><a name="section-6.1.1">6.1.1 <code><nobr>ORG</nobr></code>: Binary File Program Origin</a></h4><p>The <code><nobr>bin</nobr></code> format provides an additionaldirective to the list given in <a href="nasmdoc5.html">chapter 5</a>:<code><nobr>ORG</nobr></code>. The function of the<code><nobr>ORG</nobr></code> directive is to specify the origin addresswhich NASM will assume the program begins at when it is loaded into memory.<p>For example, the following code will generate the longword<code><nobr>0x00000104</nobr></code>:<p><pre>        org     0x100         dd      label label:</pre><p>Unlike the <code><nobr>ORG</nobr></code> directive provided byMASM-compatible assemblers, which allows you to jump around in the objectfile and overwrite code you have already generated, NASM's<code><nobr>ORG</nobr></code> does exactly what the directive says:<em>origin</em>. Its sole function is to specify one offset which is addedto all internal address references within the section; it does not permitany of the trickery that MASM's version does. See<a href="nasmdo10.html#section-10.1.3">section 10.1.3</a> for furthercomments.<h4><a name="section-6.1.2">6.1.2 <code><nobr>bin</nobr></code> Extensions to the <code><nobr>SECTION</nobr></code> Directive</a></h4><p>The <code><nobr>bin</nobr></code> output format extends the<code><nobr>SECTION</nobr></code> (or <code><nobr>SEGMENT</nobr></code>)directive to allow you to specify the alignment requirements of segments.This is done by appending the <code><nobr>ALIGN</nobr></code> qualifier tothe end of the section-definition line. For example,<p><pre>section .data   align=16</pre><p>switches to the section <code><nobr>.data</nobr></code> and alsospecifies that it must be aligned on a 16-byte boundary.<p>The parameter to <code><nobr>ALIGN</nobr></code> specifies how many lowbits of the section start address must be forced to zero. The alignmentvalue given may be any power of two.<h4><a name="section-6.1.3">6.1.3 <code><nobr>Multisection</nobr></code> support for the BIN format.</a></h4><p>The <code><nobr>bin</nobr></code> format allows the use of multiplesections, of arbitrary names, besides the "known"<code><nobr>.text</nobr></code>, <code><nobr>.data</nobr></code>, and<code><nobr>.bss</nobr></code> names.<ul><li>Sections may be designated <code><nobr>progbits</nobr></code> or<code><nobr>nobits</nobr></code>. Default is<code><nobr>progbits</nobr></code> (except <code><nobr>.bss</nobr></code>,which defaults to <code><nobr>nobits</nobr></code>, of course).<li>Sections can be aligned at a specified boundary following the previoussection with <code><nobr>align=</nobr></code>, or at an arbitrarybyte-granular position with <code><nobr>start=</nobr></code>.<li>Sections can be given a virtual start address, which will be used forthe calculation of all memory references within that section with<code><nobr>vstart=</nobr></code>.<li>Sections can be ordered using<code><nobr>follows=</nobr></code><code><nobr>&lt;section&gt;</nobr></code>or<code><nobr>vfollows=</nobr></code><code><nobr>&lt;section&gt;</nobr></code>as an alternative to specifying an explicit start address.<li>Arguments to <code><nobr>org</nobr></code>,<code><nobr>start</nobr></code>, <code><nobr>vstart</nobr></code>, and<code><nobr>align=</nobr></code> are critical expressions. See<a href="nasmdoc3.html#section-3.8">section 3.8</a>. E.g.<code><nobr>align=(1 &lt;&lt; ALIGN_SHIFT)</nobr></code> -<code><nobr>ALIGN_SHIFT</nobr></code> must be defined before it is usedhere.<li>Any code which comes before an explicit<code><nobr>SECTION</nobr></code> directive is directed by default into the<code><nobr>.text</nobr></code> section.<li>If an <code><nobr>ORG</nobr></code> statement is not given,<code><nobr>ORG 0</nobr></code> is used by default.<li>The <code><nobr>.bss</nobr></code> section will be placed after thelast <code><nobr>progbits</nobr></code> section, unless<code><nobr>start=</nobr></code>, <code><nobr>vstart=</nobr></code>,<code><nobr>follows=</nobr></code>, or <code><nobr>vfollows=</nobr></code>has been specified.<li>All sections are aligned on dword boundaries, unless a differentalignment has been specified.<li>Sections may not overlap.<li>Nasm creates the<code><nobr>section.&lt;secname&gt;.start</nobr></code> for each section,which may be used in your code.</ul><h4><a name="section-6.1.4">6.1.4 Map files</a></h4><p>Map files can be generated in <code><nobr>-f bin</nobr></code> format bymeans of the <code><nobr>[map]</nobr></code> option. Map types of<code><nobr>all</nobr></code> (default), <code><nobr>brief</nobr></code>,<code><nobr>sections</nobr></code>, <code><nobr>segments</nobr></code>, or<code><nobr>symbols</nobr></code> may be specified. Output may be directedto <code><nobr>stdout</nobr></code> (default),<code><nobr>stderr</nobr></code>, or a specified file. E.g.<code><nobr>[map symbols myfile.map]</nobr></code>. No "user form" exists,the square brackets must be used.<h3><a name="section-6.2">6.2 <code><nobr>obj</nobr></code>: Microsoft OMF Object Files</a></h3><p>The <code><nobr>obj</nobr></code> file format (NASM calls it<code><nobr>obj</nobr></code> rather than <code><nobr>omf</nobr></code> forhistorical reasons) is the one produced by MASM and TASM, which istypically fed to 16-bit DOS linkers to produce<code><nobr>.EXE</nobr></code> files. It is also the format used by OS/2.<p><code><nobr>obj</nobr></code> provides a default output file-nameextension of <code><nobr>.obj</nobr></code>.<p><code><nobr>obj</nobr></code> is not exclusively a 16-bit format,though: NASM has full support for the 32-bit extensions to the format. Inparticular, 32-bit <code><nobr>obj</nobr></code> format files are used byBorland's Win32 compilers, instead of using Microsoft's newer<code><nobr>win32</nobr></code> object file format.<p>The <code><nobr>obj</nobr></code> format does not define any specialsegment names: you can call your segments anything you like. Typical namesfor segments in <code><nobr>obj</nobr></code> format files are<code><nobr>CODE</nobr></code>, <code><nobr>DATA</nobr></code> and<code><nobr>BSS</nobr></code>.<p>If your source file contains code before specifying an explicit<code><nobr>SEGMENT</nobr></code> directive, then NASM will invent its ownsegment called <code><nobr>__NASMDEFSEG</nobr></code> for you.<p>When you define a segment in an <code><nobr>obj</nobr></code> file, NASMdefines the segment name as a symbol as well, so that you can access thesegment address of the segment. So, for example:<p><pre>segment data dvar:   dw      1234 segment code function:         mov     ax,data         ; get segment address of data         mov     ds,ax           ; and move it into DS         inc     word [dvar]     ; now this reference will work         ret</pre><p>The <code><nobr>obj</nobr></code> format also enables the use of the<code><nobr>SEG</nobr></code> and <code><nobr>WRT</nobr></code> operators,so that you can write code which does things like<p><pre>extern  foo       mov   ax,seg foo            ; get preferred segment of foo       mov   ds,ax       mov   ax,data               ; a different segment       mov   es,ax       mov   ax,[ds:foo]           ; this accesses `foo'       mov   [es:foo wrt data],bx  ; so does this</pre><h4><a name="section-6.2.1">6.2.1 <code><nobr>obj</nobr></code> Extensions to the <code><nobr>SEGMENT</nobr></code> Directive</a></h4><p>The <code><nobr>obj</nobr></code> output format extends the<code><nobr>SEGMENT</nobr></code> (or <code><nobr>SECTION</nobr></code>)directive to allow you to specify various properties of the segment you aredefining. This is done by appending extra qualifiers to the end of thesegment-definition line. For example,<p><pre>segment code private align=16</pre><p>defines the segment <code><nobr>code</nobr></code>, but also declares itto be a private segment, and requires that the portion of it described inthis code module must be aligned on a 16-byte boundary.<p>The available qualifiers are:<ul><li><code><nobr>PRIVATE</nobr></code>, <code><nobr>PUBLIC</nobr></code>,<code><nobr>COMMON</nobr></code> and <code><nobr>STACK</nobr></code>specify the combination characteristics of the segment.<code><nobr>PRIVATE</nobr></code> segments do not get combined with anyothers by the linker; <code><nobr>PUBLIC</nobr></code> and<code><nobr>STACK</nobr></code> segments get concatenated together at linktime; and <code><nobr>COMMON</nobr></code> segments all get overlaid on topof each other rather than stuck end-to-end.<li><code><nobr>ALIGN</nobr></code> is used, as shown above, to specify howmany low bits of the segment start address must be forced to zero. Thealignment value given may be any power of two from 1 to 4096; in reality,the only values supported are 1, 2, 4, 16, 256 and 4096, so if 8 isspecified it will be rounded up to 16, and 32, 64 and 128 will all be

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费在线播放| 懂色av一区二区夜夜嗨| 欧美日韩高清影院| 久久综合九色综合欧美98| 久久久亚洲精品一区二区三区| 国产精品欧美精品| 天堂一区二区在线| 成人av电影在线网| 久久综合九色综合欧美就去吻| 国产精品蜜臀av| 九九视频精品免费| 欧美日韩一卡二卡| 亚洲人成精品久久久久久| 99re8在线精品视频免费播放| 欧美激情艳妇裸体舞| 午夜一区二区三区视频| 一本高清dvd不卡在线观看| 国产精品久久久久精k8| 成人做爰69片免费看网站| 国产精品初高中害羞小美女文| 国产精品一区二区免费不卡 | 成人av在线影院| 中文字幕av在线一区二区三区| 成人午夜私人影院| 中文字幕精品一区二区三区精品 | 日产国产高清一区二区三区| 欧美巨大另类极品videosbest| 老色鬼精品视频在线观看播放| 国产精品美女久久久久久久网站| 一本大道久久a久久精品综合| 国产不卡视频在线播放| 国产精品青草综合久久久久99| 欧美日韩另类一区| 国产一区二区调教| 亚洲色图色小说| 欧美一区二区福利在线| 久久99精品久久久久久国产越南 | 欧美二区在线观看| 91精品1区2区| 成人av电影在线| 日日夜夜精品视频天天综合网| 日本一区二区免费在线观看视频| 欧美日韩国产一区| 欧美性大战久久| 国产伦理精品不卡| 亚洲乱码中文字幕综合| 日韩欧美国产小视频| 国产盗摄视频一区二区三区| 亚洲妇女屁股眼交7| 国产精品久久免费看| 日韩视频一区二区三区| 欧美日韩精品系列| 色婷婷综合久色| 日本精品一区二区三区高清| 99精品国产91久久久久久| 国产成人av影院| 久久成人久久鬼色| 看电影不卡的网站| 毛片av中文字幕一区二区| 成人欧美一区二区三区1314 | 欧美午夜影院一区| 色狠狠桃花综合| 欧日韩精品视频| 在线一区二区三区四区五区 | 久久亚洲一区二区三区四区| 国产日韩欧美一区二区三区综合 | 高清国产一区二区| 91美女在线观看| 日韩精品一区国产麻豆| 久久久不卡网国产精品二区| 中文字幕va一区二区三区| 国产精品久久久久永久免费观看| √…a在线天堂一区| 中文在线资源观看网站视频免费不卡| 欧美大胆一级视频| 国产精品久久久久影院亚瑟| 亚洲色图清纯唯美| 久久国产精品99久久久久久老狼| 国产精品99久久久久久宅男| 成人av电影免费在线播放| 欧美三级乱人伦电影| 国产精品午夜久久| 日韩电影网1区2区| 成人免费视频免费观看| 日本久久精品电影| 久久久久久日产精品| 樱桃国产成人精品视频| 久久99精品国产麻豆婷婷洗澡| 成人免费看视频| 欧美在线看片a免费观看| 欧美三级韩国三级日本一级| 欧美韩国一区二区| 日韩精品国产精品| 色综合久久综合网| 欧美极品xxx| 麻豆极品一区二区三区| 色综合视频一区二区三区高清| 91精品欧美久久久久久动漫 | √…a在线天堂一区| 欧美aaaaaa午夜精品| 97精品久久久午夜一区二区三区| 欧美日韩国产首页| 亚洲在线视频一区| 成人黄色大片在线观看| 欧美日韩aaaaaa| 亚洲一区二区四区蜜桃| 成人免费高清在线观看| 久久久国产精品不卡| 国产69精品久久久久毛片| 久久精品亚洲精品国产欧美kt∨| 另类的小说在线视频另类成人小视频在线 | 国产日韩欧美在线一区| 国产揄拍国内精品对白| 日韩一二三四区| 成人蜜臀av电影| 亚洲精品免费电影| 日韩一级片在线观看| 精品系列免费在线观看| 国产校园另类小说区| 日本高清成人免费播放| 免费成人在线观看| 中国av一区二区三区| 91网站最新地址| 免费xxxx性欧美18vr| 国产欧美精品一区| 在线一区二区观看| 亚洲精品国产第一综合99久久 | 成人永久免费视频| 天天射综合影视| 日韩伦理免费电影| 2021久久国产精品不只是精品| jvid福利写真一区二区三区| 日本亚洲电影天堂| 亚洲精品国产a久久久久久| 久久久综合激的五月天| 欧美性猛交xxxxxxxx| 99久久精品费精品国产一区二区| 蜜桃av一区二区| 首页国产欧美久久| 亚洲一卡二卡三卡四卡无卡久久 | 欧美三级中文字幕在线观看| 奇米影视在线99精品| 亚洲欧洲制服丝袜| 国产精品黄色在线观看| 久久夜色精品国产噜噜av| 欧美麻豆精品久久久久久| 色偷偷成人一区二区三区91| 国产宾馆实践打屁股91| 久久电影网电视剧免费观看| 亚洲国产精品久久人人爱| 亚洲精品美国一| 亚洲另类在线制服丝袜| 1024成人网| 亚洲免费视频成人| ●精品国产综合乱码久久久久| 国产目拍亚洲精品99久久精品| 久久午夜羞羞影院免费观看| 精品国偷自产国产一区| 欧美系列一区二区| 日韩色视频在线观看| 91精品啪在线观看国产60岁| 69p69国产精品| 精品国产免费一区二区三区四区| 日韩欧美你懂的| 久久精品夜色噜噜亚洲a∨| 久久久综合九色合综国产精品| 精品国产一区二区三区四区四 | 精品免费国产二区三区| 中文字幕制服丝袜一区二区三区| 亚洲精品写真福利| 精品一区二区在线免费观看| 成人午夜在线视频| 欧美精品一级二级| 国产精品护士白丝一区av| 日韩精品久久理论片| 成人不卡免费av| 日韩视频不卡中文| 一区二区三区视频在线看| 麻豆免费看一区二区三区| 97精品超碰一区二区三区| 91精品福利在线一区二区三区 | 亚洲动漫第一页| 国产高清无密码一区二区三区| 欧美亚洲愉拍一区二区| 亚洲国产高清aⅴ视频| 日本视频中文字幕一区二区三区| 99视频一区二区| 久久久电影一区二区三区| 视频一区在线播放| 在线精品亚洲一区二区不卡| 精品一区二区久久久| 亚洲v日本v欧美v久久精品| 97久久久精品综合88久久| 日本一区二区三级电影在线观看| 男人的天堂久久精品| 欧美性猛片aaaaaaa做受| 亚洲精品一二三区| 欧美日韩一区在线| 亚洲国产成人高清精品| 欧美猛男超大videosgay|