section .data hello db 'Hello, World!',0ah ;定义要输出的字符串,0ah表示换行符 secti...
section .data;section declarationmsg db"Hello, world!",0xA;our dear stringlen equ $ - msg;length of our dear stringsection .text;section declaration;we must export the entry point to the ELF linker orglobal _start;loader. They conventionally recognize _start as their;entry point. Use ld -...
section .data msg db 'Hello, World!',0 section .text global _start _start: ...
系统调用的参数通过其他寄存器传递:r0表示我们要打印的文件描述符的编号。我们给他赋值为1(第5行),这个我们都熟悉,标号为1的文件描述符实际上就是stdout,标准输出,这样就功能在屏幕上打印。r1表示我们要载入的数据的内存地址,因此我们给它赋值为"Hello,World ChongChong"字符串的地址(第6行)。r2告诉Android...
【Linux AT&T汇编语言6种 Hello,World! 的写法-哔哩哔哩】https://b23.tv/kKKDcyv ...
str,%rdx# 调用 OutputStringcallq*8(%rcx)# 退出retqhello_str:# UTF-16 编码的 "Hello, world...