paramtest3.s

来自「不错的X86汇编代码示例」· S 代码 · 共 28 行

S
28
字号
# paramtest3.s - An example of using command line parameters.section .dataoutput:   .asciz "The area is: %f\n".section .bss   .lcomm result, 4.section .text.globl _start_start:   nop   finit   pushl 8(%esp)   call atoi   addl $4, %esp   movl %eax, result   fldpi   filds result   fmul %st(0), %st(0)   fmul %st(1), %st(0)   fstpl (%esp)   pushl $output   call printf   addl $12, %esp   pushl $0   call exit

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?