cmpstest2.s

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

S
23
字号
# cmpstest2.s - An example of using the REPE CMPS instruction.section .datavalue1:   .ascii "This is a test of the CMPS instructions"value2:   .ascii "This is a test of the CMPS Instructions".section .text.globl _start_start:   nop   movl $1, %eax   lea value1, %esi   leal value2, %edi   movl $39, %ecx   cld   repe cmpsb   je equal   movl %ecx, %ebx   int $0x80equal:   movl $0, %ebx   int $0x80

⌨️ 快捷键说明

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