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

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

?? nasmdoc6.htm

?? nasm手冊(cè) 大家可以看看 對(duì)要寫匯編程序的幫助很大
?? HTM
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
<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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区二区在线观看| 成人一区在线观看| 亚洲国产精品激情在线观看| 欧美亚日韩国产aⅴ精品中极品| 韩国欧美国产一区| 天天操天天综合网| 亚洲你懂的在线视频| 国产日产精品一区| 日韩一级完整毛片| 在线免费观看日本欧美| 国产成人小视频| 美国毛片一区二区| 亚洲第一av色| 一区二区三区四区不卡在线| 国产精品久久久久桃色tv| www久久精品| 日韩欧美亚洲国产精品字幕久久久 | 中文字幕在线观看不卡视频| 亚洲午夜激情av| 国产精品午夜久久| 亚洲精品一区二区三区影院| 91精品国产一区二区三区| 欧洲av一区二区嗯嗯嗯啊| av电影在线观看一区| 国产成人午夜片在线观看高清观看| 成人一区二区三区在线观看| 玖玖九九国产精品| 天天做天天摸天天爽国产一区 | 日韩视频一区二区三区| 欧美日韩中文国产| 色又黄又爽网站www久久| 99国产精品久久久久| 成人av小说网| 97久久精品人人做人人爽| voyeur盗摄精品| 99久久国产综合精品麻豆| av高清不卡在线| 91首页免费视频| 在线一区二区观看| 欧美巨大另类极品videosbest| 国产拍欧美日韩视频二区| 久久久久久久久免费| 精品粉嫩超白一线天av| 精品福利一二区| 国产欧美综合色| 成人欧美一区二区三区小说| 亚洲欧美视频在线观看| 一区二区三区欧美久久| 亚洲成人激情自拍| 美美哒免费高清在线观看视频一区二区 | 91麻豆精品91久久久久久清纯| 欧美日韩国产一区二区三区地区| 欧美日韩久久久一区| 欧美老年两性高潮| 2023国产精品自拍| 免费成人av在线播放| 免费高清成人在线| 国产成a人无v码亚洲福利| av影院午夜一区| 欧美系列在线观看| 欧美日韩成人一区| 国产综合色产在线精品| 国产成人精品免费看| 99天天综合性| 欧美高清视频不卡网| 亚洲精品在线免费观看视频| 国产欧美一区二区三区网站| 一区二区三区资源| 麻豆精品精品国产自在97香蕉| 国产精品99久久久久| 日本福利一区二区| 日韩一区二区三区电影在线观看| 国产视频911| 亚洲专区一二三| 美女mm1313爽爽久久久蜜臀| av不卡一区二区三区| 欧美电影一区二区| 中文字幕第一页久久| 亚洲国产成人av| 粉嫩13p一区二区三区| 欧美性色欧美a在线播放| 中文字幕久久午夜不卡| 亚洲激情图片一区| 久久夜色精品国产欧美乱极品| 调教+趴+乳夹+国产+精品| 亚洲欧洲精品成人久久奇米网| 久久午夜羞羞影院免费观看| 亚洲欧美偷拍卡通变态| 国产盗摄精品一区二区三区在线 | 久久久www成人免费无遮挡大片 | 91精品国产一区二区三区香蕉| 亚洲影院在线观看| 91婷婷韩国欧美一区二区| 国产精品伦理一区二区| 国产成人精品一区二| 国产亚洲综合在线| 国产一区二区女| 欧美精品一区二区三| 精品无人码麻豆乱码1区2区 | 日韩不卡在线观看日韩不卡视频| 在线观看av一区二区| 一区二区三区在线免费播放| 91丨porny丨国产| 伊人一区二区三区| 91国偷自产一区二区使用方法| 亚洲免费色视频| 欧美撒尿777hd撒尿| 国产一区二区三区蝌蚪| 成人久久久精品乱码一区二区三区| 99vv1com这只有精品| 中文字幕欧美三区| 成a人片亚洲日本久久| 日韩美女视频一区| 91蜜桃视频在线| 亚洲国产精品尤物yw在线观看| 欧美亚一区二区| 免费xxxx性欧美18vr| 久久嫩草精品久久久精品| 国产电影一区在线| 中文字幕一区二区三区色视频| 99国产欧美另类久久久精品| 亚洲蜜桃精久久久久久久| 日本丶国产丶欧美色综合| 亚洲国产成人av网| 欧美成人三级在线| 国产成人精品一区二区三区网站观看| 国产精品视频一二三区| 91国产丝袜在线播放| 日产精品久久久久久久性色| 久久久噜噜噜久久中文字幕色伊伊 | 看国产成人h片视频| 国产三级久久久| 欧美伊人久久久久久久久影院 | 亚洲五码中文字幕| 欧美色网一区二区| 久久精品99国产精品日本| 国产日韩欧美精品一区| 91蜜桃网址入口| 美女视频网站黄色亚洲| 国产蜜臀av在线一区二区三区| 色综合欧美在线视频区| 日韩精品亚洲专区| 国产午夜精品理论片a级大结局| 91丨九色丨尤物| 久久国产尿小便嘘嘘尿| 18涩涩午夜精品.www| 日韩一区二区三区在线视频| av一本久道久久综合久久鬼色| 亚洲一二三四在线| 久久嫩草精品久久久久| 欧美吞精做爰啪啪高潮| 国产乱码精品一区二区三区av | 国产精品88888| 亚洲午夜免费电影| 久久精品在线观看| 欧美天天综合网| 国产 日韩 欧美大片| 日韩av在线播放中文字幕| 亚洲图片你懂的| 精品国产污污免费网站入口| 欧美性大战xxxxx久久久| 国产成人鲁色资源国产91色综| 亚洲国产精品嫩草影院| 欧美极品美女视频| 日韩女优av电影| 欧亚洲嫩模精品一区三区| 高潮精品一区videoshd| 免费不卡在线视频| 亚洲午夜久久久久久久久久久| 国产女人aaa级久久久级| 777xxx欧美| 欧美性生活影院| 91影院在线观看| 国产福利一区二区| 六月婷婷色综合| 亚洲成人精品在线观看| 亚洲免费观看视频| 国产精品免费人成网站| 亚洲精品一区二区在线观看| 3d动漫精品啪啪1区2区免费| 色综合久久综合网97色综合| 国产成人av福利| 免费精品99久久国产综合精品| 一区二区欧美精品| 自拍视频在线观看一区二区| 欧美高清一级片在线观看| 久久一二三国产| 欧美mv日韩mv亚洲| 日韩一二三区不卡| 欧美老肥妇做.爰bbww视频| 在线精品视频一区二区三四| 高清beeg欧美| 粉嫩蜜臀av国产精品网站| 国产一区二区在线影院| 韩国女主播一区二区三区| 麻豆免费精品视频| 免费人成在线不卡| 免费观看一级特黄欧美大片| 午夜欧美电影在线观看| 午夜精品一区二区三区免费视频 |