strsize.s
来自「汇编代码示例」· S 代码 · 共 25 行
S
25 行
# strsize.s - Finding the size of a string using the SCAS instruction.section .datastring1: .asciz "Testing, one, two, three, testing.\n".section .text.globl _start_start: nop leal string1, %edi movl $0xffff, %ecx movb $0, %al cld repne scasb jne notfound subw $0xffff, %cx neg %cx dec %cx movl $1, %eax movl %ecx, %ebx int $0x80notfound: movl $1, %eax movl $0, %ebx int $0x80
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?