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

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

?? nasmdoc2.htm

?? nasm手冊 大家可以看看 對要寫匯編程序的幫助很大
?? HTM
?? 第 1 頁 / 共 3 頁
字號:
<html><head><title>NASM Manual</title></head><body><h1 align=center>The Netwide Assembler: NASM</h1><p align=center><a href="nasmdoc3.html">Next Chapter</a> |<a href="nasmdoc1.html">Previous Chapter</a> |<a href="nasmdoc0.html">Contents</a> |<a href="nasmdoci.html">Index</a><h2><a name="chapter-2">Chapter 2: Running NASM</a></h2><h3><a name="section-2.1">2.1 NASM Command-Line Syntax</a></h3><p>To assemble a file, you issue a command of the form<p><pre>nasm -f &lt;format&gt; &lt;filename&gt; [-o &lt;output&gt;]</pre><p>For example,<p><pre>nasm -f elf myfile.asm</pre><p>will assemble <code><nobr>myfile.asm</nobr></code> into an<code><nobr>ELF</nobr></code> object file<code><nobr>myfile.o</nobr></code>. And<p><pre>nasm -f bin myfile.asm -o myfile.com</pre><p>will assemble <code><nobr>myfile.asm</nobr></code> into a raw binaryfile <code><nobr>myfile.com</nobr></code>.<p>To produce a listing file, with the hex codes output from NASM displayedon the left of the original sources, use the <code><nobr>-l</nobr></code>option to give a listing file name, for example:<p><pre>nasm -f coff myfile.asm -l myfile.lst</pre><p>To get further usage instructions from NASM, try typing<p><pre>nasm -h</pre><p>As <code><nobr>-hf</nobr></code>, this will also list the availableoutput file formats, and what they are.<p>If you use Linux but aren't sure whether your system is<code><nobr>a.out</nobr></code> or <code><nobr>ELF</nobr></code>, type<p><pre>file nasm</pre><p>(in the directory in which you put the NASM binary when you installedit). If it says something like<p><pre>nasm: ELF 32-bit LSB executable i386 (386 and up) Version 1</pre><p>then your system is <code><nobr>ELF</nobr></code>, and you should usethe option <code><nobr>-f elf</nobr></code> when you want NASM to produceLinux object files. If it says<p><pre>nasm: Linux/i386 demand-paged executable (QMAGIC)</pre><p>or something similar, your system is <code><nobr>a.out</nobr></code>,and you should use <code><nobr>-f aout</nobr></code> instead (Linux<code><nobr>a.out</nobr></code> systems have long been obsolete, and arerare these days.)<p>Like Unix compilers and assemblers, NASM is silent unless it goes wrong:you won't see any output at all, unless it gives error messages.<h4><a name="section-2.1.1">2.1.1 The <code><nobr>-o</nobr></code> Option: Specifying the Output File Name</a></h4><p>NASM will normally choose the name of your output file for you;precisely how it does this is dependent on the object file format. ForMicrosoft object file formats (<code><nobr>obj</nobr></code> and<code><nobr>win32</nobr></code>), it will remove the<code><nobr>.asm</nobr></code> extension (or whatever extension you like touse - NASM doesn't care) from your source file name and substitute<code><nobr>.obj</nobr></code>. For Unix object file formats(<code><nobr>aout</nobr></code>, <code><nobr>coff</nobr></code>,<code><nobr>elf</nobr></code> and <code><nobr>as86</nobr></code>) it willsubstitute <code><nobr>.o</nobr></code>. For <code><nobr>rdf</nobr></code>,it will use <code><nobr>.rdf</nobr></code>, and for the<code><nobr>bin</nobr></code> format it will simply remove the extension,so that <code><nobr>myfile.asm</nobr></code> produces the output file<code><nobr>myfile</nobr></code>.<p>If the output file already exists, NASM will overwrite it, unless it hasthe same name as the input file, in which case it will give a warning anduse <code><nobr>nasm.out</nobr></code> as the output file name instead.<p>For situations in which this behaviour is unacceptable, NASM providesthe <code><nobr>-o</nobr></code> command-line option, which allows you tospecify your desired output file name. You invoke<code><nobr>-o</nobr></code> by following it with the name you wish for theoutput file, either with or without an intervening space. For example:<p><pre>nasm -f bin program.asm -o program.com nasm -f bin driver.asm -odriver.sys</pre><p>Note that this is a small o, and is different from a capital O , whichis used to specify the number of optimisation passes required. See<a href="#section-2.1.16">section 2.1.16</a>.<h4><a name="section-2.1.2">2.1.2 The <code><nobr>-f</nobr></code> Option: Specifying the Output File Format</a></h4><p>If you do not supply the <code><nobr>-f</nobr></code> option to NASM, itwill choose an output file format for you itself. In the distributionversions of NASM, the default is always <code><nobr>bin</nobr></code>; ifyou've compiled your own copy of NASM, you can redefine<code><nobr>OF_DEFAULT</nobr></code> at compile time and choose what youwant the default to be.<p>Like <code><nobr>-o</nobr></code>, the intervening space between<code><nobr>-f</nobr></code> and the output file format is optional; so<code><nobr>-f elf</nobr></code> and <code><nobr>-felf</nobr></code> areboth valid.<p>A complete list of the available output file formats can be given byissuing the command <code><nobr>nasm -hf</nobr></code>.<h4><a name="section-2.1.3">2.1.3 The <code><nobr>-l</nobr></code> Option: Generating a Listing File</a></h4><p>If you supply the <code><nobr>-l</nobr></code> option to NASM, followed(with the usual optional space) by a file name, NASM will generate asource-listing file for you, in which addresses and generated code arelisted on the left, and the actual source code, with expansions ofmulti-line macros (except those which specifically request no expansion insource listings: see <a href="nasmdoc4.html#section-4.3.9">section4.3.9</a>) on the right. For example:<p><pre>nasm -f elf myfile.asm -l myfile.lst</pre><p>If a list file is selected, you may turn off listing for a section ofyour source with <code><nobr>[list -]</nobr></code>, and turn it back onwith <code><nobr>[list +]</nobr></code>, (the default, obviously). There isno "user form" (without the brackets). This can be used to list onlysections of interest, avoiding excessively long listings.<h4><a name="section-2.1.4">2.1.4 The <code><nobr>-M</nobr></code> Option: Generate Makefile Dependencies.</a></h4><p>This option can be used to generate makefile dependencies on stdout.This can be redirected to a file for further processing. For example:<p><pre>NASM -M myfile.asm &gt; myfile.dep</pre><h4><a name="section-2.1.5">2.1.5 The <code><nobr>-F</nobr></code> Option: Selecting a Debug Information Format</a></h4><p>This option is used to select the format of the debug informationemitted into the output file, to be used by a debugger (or <em>will</em>be). Use of this switch does <em>not</em> enable output of the selecteddebug info format. Use <code><nobr>-g</nobr></code>, see<a href="#section-2.1.6">section 2.1.6</a>, to enable output.<p>A complete list of the available debug file formats for an output formatcan be seen by issuing the command<code><nobr>nasm -f &lt;format&gt; -y</nobr></code>. (only "borland" in "-fobj", as of 0.98.35, but "watch this space") See:<a href="#section-2.1.20">section 2.1.20</a>.<p>This should not be confused with the "-f dbg" output format option whichis not built into NASM by default. For information on how to enable it whenbuilding from the sources, see <a href="nasmdoc6.html#section-6.10">section6.10</a><h4><a name="section-2.1.6">2.1.6 The <code><nobr>-g</nobr></code> Option: Enabling Debug Information.</a></h4><p>This option can be used to generate debugging information in thespecified format. See: <a href="#section-2.1.5">section 2.1.5</a>. Using<code><nobr>-g</nobr></code> without <code><nobr>-F</nobr></code> resultsin emitting debug info in the default format, if any, for the selectedoutput format. If no debug information is currently implemented in theselected output format, <code><nobr>-g</nobr></code> is <em>silentlyignored</em>.<h4><a name="section-2.1.7">2.1.7 The <code><nobr>-X</nobr></code> Option: Selecting an Error Reporting Format</a></h4><p>This option can be used to select an error reporting format for anyerror messages that might be produced by NASM.<p>Currently, two error reporting formats may be selected. They are the<code><nobr>-Xvc</nobr></code> option and the<code><nobr>-Xgnu</nobr></code> option. The GNU format is the default andlooks like this:<p><pre>filename.asm:65: error: specific error message </pre><p>where <code><nobr>filename.asm</nobr></code> is the name of the sourcefile in which the error was detected, <code><nobr>65</nobr></code> is thesource file line number on which the error was detected,<code><nobr>error</nobr></code> is the severity of the error (this could be<code><nobr>warning</nobr></code>), and<code><nobr>specific error message</nobr></code> is a more detailed textmessage which should help pinpoint the exact problem.<p>The other format, specified by <code><nobr>-Xvc</nobr></code> is thestyle used by Microsoft Visual C++ and some other programs. It looks likethis:<p><pre>filename.asm(65) : error: specific error message</pre><p>where the only difference is that the line number is in parenthesesinstead of being delimited by colons.<p>See also the <code><nobr>Visual C++</nobr></code> output format,<a href="nasmdoc6.html#section-6.3">section 6.3</a>.<h4><a name="section-2.1.8">2.1.8 The <code><nobr>-E</nobr></code> Option: Send Errors to a File</a></h4><p>Under <code><nobr>MS-DOS</nobr></code> it can be difficult (though thereare ways) to redirect the standard-error output of a program to a file.Since NASM usually produces its warning and error messages on<code><nobr>stderr</nobr></code>, this can make it hard to capture theerrors if (for example) you want to load them into an editor.<p>NASM therefore provides the <code><nobr>-E</nobr></code> option, takinga filename argument which causes errors to be sent to the specified filesrather than standard error. Therefore you can redirect the errors into afile by typing<p><pre>nasm -E myfile.err -f obj myfile.asm</pre><h4><a name="section-2.1.9">2.1.9 The <code><nobr>-s</nobr></code> Option: Send Errors to <code><nobr>stdout</nobr></code></a></h4><p>The <code><nobr>-s</nobr></code> option redirects error messages to<code><nobr>stdout</nobr></code> rather than<code><nobr>stderr</nobr></code>, so it can be redirected under

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区不卡| 色综合网色综合| 欧美大片一区二区三区| 美国一区二区三区在线播放| 日韩亚洲欧美中文三级| 裸体一区二区三区| 日韩一级高清毛片| 国内精品久久久久影院色| 久久影院午夜片一区| 高潮精品一区videoshd| 中文字幕一区二区三区四区| 欧美在线不卡一区| 午夜精品久久久| 久久久久国产精品人| 成人av网在线| 婷婷久久综合九色综合伊人色| 欧美一区二区三区免费大片| 国产美女视频91| 一区二区三区在线观看视频| 69p69国产精品| 国产成人精品免费在线| 亚洲视频在线观看一区| 欧美一区二区三区成人| 国产乱码精品一区二区三| 亚洲天堂久久久久久久| 欧美电影一区二区三区| 国产精品1区二区.| 一区二区视频免费在线观看| 日韩免费高清av| 99久久久精品| 久久av资源网| 亚洲男同性视频| 精品va天堂亚洲国产| 91在线小视频| 激情成人综合网| 伊人开心综合网| 2021国产精品久久精品| 日本大香伊一区二区三区| 蜜乳av一区二区| 一区二区在线免费| 久久免费电影网| 欧美日韩免费高清一区色橹橹| 国产成人免费视频精品含羞草妖精| 亚洲综合另类小说| 中文字幕免费不卡| 91精品国产色综合久久| 91免费看片在线观看| 国产综合一区二区| 亚洲18色成人| 亚洲欧美激情在线| 久久人人97超碰com| 欧美视频完全免费看| 丁香一区二区三区| 久久精品国产77777蜜臀| 亚洲国产精品久久久久婷婷884| 国产欧美精品区一区二区三区 | 欧美丰满少妇xxxxx高潮对白| 国内成人精品2018免费看| 亚洲国产裸拍裸体视频在线观看乱了 | 亚洲国产视频网站| 国产精品免费丝袜| 精品第一国产综合精品aⅴ| 91麻豆精品国产91久久久| 色综合久久久久久久久| 懂色av一区二区夜夜嗨| 国产乱对白刺激视频不卡| 奇米精品一区二区三区在线观看 | 色综合天天在线| 国产成人久久精品77777最新版本| 日韩精品视频网站| 亚洲女人小视频在线观看| 中文字幕一区二区三区蜜月| 国产视频视频一区| 久久色.com| 久久午夜电影网| 久久综合九色综合欧美亚洲| 欧美成人乱码一区二区三区| 精品国产3级a| 欧美精品一区二区三区四区| 精品剧情在线观看| 日韩手机在线导航| 精品美女一区二区三区| 欧美mv和日韩mv的网站| 欧美成人高清电影在线| 精品电影一区二区| 久久久久国色av免费看影院| 国产午夜亚洲精品午夜鲁丝片| 久久免费美女视频| 国产精品婷婷午夜在线观看| 国产精品不卡一区| 亚洲人成7777| 亚洲18女电影在线观看| 麻豆精品久久久| 国产精品一二三区在线| 大白屁股一区二区视频| av亚洲精华国产精华精华| 92精品国产成人观看免费| 欧美私人免费视频| 538prom精品视频线放| 精品国产免费人成在线观看| 国产欧美一区二区精品仙草咪| 国产精品理伦片| 亚洲线精品一区二区三区| 蜜臀va亚洲va欧美va天堂| 精品在线观看免费| 成人福利视频在线看| 色爱区综合激月婷婷| 欧美日韩第一区日日骚| 精品国产第一区二区三区观看体验| 中文字幕不卡在线观看| 怡红院av一区二区三区| 免费av网站大全久久| 高清不卡一区二区在线| 欧洲日韩一区二区三区| 精品美女被调教视频大全网站| 亚洲国产电影在线观看| 亚洲一区二区三区美女| 韩国一区二区在线观看| 99精品偷自拍| 精品美女被调教视频大全网站| 日韩久久一区二区| 久久99这里只有精品| 91在线视频免费91| 欧美变态tickling挠脚心| 亚洲欧洲精品一区二区三区| 热久久一区二区| 99热国产精品| 精品久久人人做人人爱| 亚洲男同1069视频| 国产高清无密码一区二区三区| 欧美日韩国产小视频在线观看| 久久久精品黄色| 日韩激情视频网站| 91在线国产观看| 久久久99精品久久| 亚洲v中文字幕| jiyouzz国产精品久久| 日韩精品中文字幕在线一区| 一区二区三区欧美| 国产精品一卡二卡| 日韩一区二区三区精品视频| 一区二区三区中文在线观看| 福利一区二区在线观看| 日韩欧美久久一区| 亚洲午夜在线电影| 一本久久精品一区二区| 国产午夜久久久久| 日本不卡视频一二三区| 色欧美片视频在线观看在线视频| 国产视频一区二区在线| 蜜桃精品视频在线观看| 欧美日韩一级大片网址| 日韩一区有码在线| 国产盗摄一区二区| 日韩免费高清视频| 日本成人在线电影网| 欧美日韩亚洲国产综合| 一区二区三区中文字幕在线观看| www.亚洲色图| 日本一区二区综合亚洲| 国产一区二区网址| 日韩精品一区二区三区四区视频| 日韩精品久久久久久| 欧美日韩视频第一区| 亚洲午夜久久久久久久久电影网 | 精品1区2区3区| 一片黄亚洲嫩模| 色综合久久久久| 亚洲久本草在线中文字幕| 91在线国产福利| 亚洲一区二区三区四区五区中文| 色呦呦国产精品| 亚洲综合小说图片| 欧美调教femdomvk| 视频在线观看一区| 欧美一区二区在线看| 男人操女人的视频在线观看欧美| 欧美一级片在线观看| 蜜桃在线一区二区三区| 日韩精品一区二区三区三区免费| 精品中文字幕一区二区| 欧美xxxxx裸体时装秀| 国模娜娜一区二区三区| 国产亚洲精品福利| 97精品电影院| 午夜国产精品一区| 日韩免费性生活视频播放| 国产成人在线免费观看| 欧美国产成人精品| 一本色道a无线码一区v| 视频一区欧美日韩| 337p日本欧洲亚洲大胆色噜噜| 福利一区二区在线观看| 亚洲激情成人在线| 91麻豆精品国产91久久久资源速度| 国产综合色在线| 亚洲黄色av一区| 精品国产露脸精彩对白| 成人高清av在线| 日韩精品色哟哟|