![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
汇编
wuxingge
这个作者很懒,什么都没留下…
展开
-
NASM 实现 hello world
代码vim hello.ssection .textglobal mainmain:mov eax,4 ; 4号调用mov ebx,1 ; ebx送1表示输出mov ecx,msge ; 字符串的首地址送入ecxmov edx,14 ; 字符串的长度送入edxint 80h ; 输出字串mov eax,1 ; 1号调用int 80h ; 结束 msge:db "Hello world!",0ah,0dh编译nasm -f elf64 hello.s原创 2021-02-17 08:43:14 · 698 阅读 · 0 评论 -
linux汇编器 NASM
https://www.nasm.us/linux运行nasm安装yum install nasm编写汇编文件vim HelloWorld.ssection .data ;section declarationmsg db "Hello, world!",0xA ;our dear stringlen equ $ - msg ;length of our dear原创 2021-02-17 08:31:39 · 581 阅读 · 0 评论