<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>assembly &#8211; richliu&#039;s blog</title>
	<atom:link href="https://richliu.com/tag/assembly/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Sun, 22 May 2011 18:31:24 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Linux Assembly</title>
		<link>https://richliu.com/2011/05/23/1091/linux-assembly/</link>
					<comments>https://richliu.com/2011/05/23/1091/linux-assembly/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Sun, 22 May 2011 18:31:24 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[assembly]]></category>
		<category><![CDATA[sys_nanosleep]]></category>
		<category><![CDATA[syscall]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=1091</guid>

					<description><![CDATA[<p>這個只是筆記, 沒有很深入的內容. Writing resident programs under Linux [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2011/05/23/1091/linux-assembly/">Linux Assembly</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>這個只是筆記,<br />
沒有很深入的內容. </p>
<p><span id="more-1091"></span></p>
<p><a href="http://rudy.mif.pg.gda.pl/~bogdro/linux/tsr_tut_linux_en.html" target="_blank" rel="noopener"><br />
Writing resident programs under Linux</a> : nanosleep 的 example<br />
<a href="http://asm.sourceforge.net/syscall.html" target="_blank" rel="noopener">List of Linux/i386 system calls</a>: 查 system call 很好用<br />
<a href="http://www.cin.ufpe.br/~if817/arquivos/asmtut/quickstart.html" target="_blank" rel="noopener">Linux Assembly Tutorial</a>: 有一些好用的範例, 適合我這種很久沒有寫 Code 的人<br />
<a href="http://www.vividmachines.com/shellcode/shellcode.html" target="_blank" rel="noopener">Shellcoding for Linux and Windows Tutorial</a>: 有我要的語法. </p>
<p>在 assembly 呼叫 nanosleep 的範例, 這會 delay 二秒.<br />
[C]<br />
        starter:<br />
        mov ebx, t1_v<br />
        mov ecx, 0<br />
        mov eax, 162    ; sys_nanosleep<br />
        int 0x80<br />
        xor eax, eax<br />
        mov al, 1       ;exit the shellcode<br />
        xor ebx,ebx<br />
        int 0x80</p>
<p>        ender:<br />
        call starter<br />
        t1_v: db 2,0,0,0,0,0,0,0</p>
<p>[/C]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2011/05/23/1091/linux-assembly/">Linux Assembly</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2011/05/23/1091/linux-assembly/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
