paramtest1.s
来自「不错的X86汇编代码示例」· S 代码 · 共 29 行
S
29 行
# paramtest1.s - Listing command line parameters.section .dataoutput1: .asciz "There are %d parameters:\n"output2: .asciz "%s\n".section .text.globl _start_start: movl (%esp), %ecx pushl %ecx pushl $output1 call printf addl $4, %esp popl %ecx movl %esp, %ebp addl $4, %ebploop1: pushl %ecx pushl (%ebp) pushl $output2 call printf addl $8, %esp popl %ecx addl $4, %ebp loop loop1 pushl $0 call exit
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?