asmfunc.s
来自「不错的X86汇编代码示例」· S 代码 · 共 25 行
S
25 行
# asmfunc.s - An example of a simple assembly language function.section .datatestdata: .ascii "This is a test message from the asm function\n"datasize: .int 45.section .text.type asmfunc, @function.globl asmfuncasmfunc: pushl %ebp movl %esp, %ebp pushl %ebx movl $4, %eax movl $1, %ebx movl $testdata, %ecx movl datasize, %edx int $0x80 popl %ebx movl %ebp, %esp popl %ebp ret
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?