📄 strcomp.s
字号:
# strcomp.s - An example of comparing strings.section .datastring1: .ascii "test"length1: .int 4string2: .ascii "test1"length2: .int 5.section .text.globl _start_start: nop lea string1, %esi lea string2, %edi movl length1, %ecx movl length2, %eax cmpl %eax, %ecx ja longer xchg %ecx, %eaxlonger: cld repe cmpsb je equal jg greaterless: movl $1, %eax movl $255, %ebx int $0x80greater: movl $1, %eax movl $1, %ebx int $0x80equal: movl length1, %ecx movl length2, %eax cmpl %ecx, %eax jg greater jl less movl $1, %eax movl $0, %ebx int $0x80
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -