cmovtest.s
来自「汇编经典教程profession_assembly_language(Richa」· S 代码 · 共 26 行
S
26 行
# cmovtest.s - An example of the CMOV instructions.section .dataoutput: .asciz "The largest value is %d\n"values: .int 105, 235, 61, 315, 134, 221, 53, 145, 117, 5.section .text.globl _start_start: nop movl values, %ebx movl $1, %ediloop: movl values(, %edi, 4), %eax cmp %ebx, %eax cmova %eax, %ebx inc %edi cmp $10, %edi jne loop pushl %ebx pushl $output call printf addl $8, %esp pushl $0 call exit
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?