scastest2.s

来自「汇编代码示例」· S 代码 · 共 29 行

S
29
字号
# scastest2.s - An example of incorrectly using the SCAS instruction.section .datastring1:   .ascii "This is a test - a long text string to scan."length:   .int 11string2:   .ascii "test".section .text.globl _start_start:   nop   leal string1, %edi   leal string2, %esi   movl length, %ecx   lodsl   cld   repne scasl   jne notfound   subw length, %cx   neg %cx   movl $1, %eax   movl %ecx, %ebx   int $0x80notfound:   movl $1, %eax   movl $0, %ebx   int $0x80

⌨️ 快捷键说明

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