📄 strsize.s
字号:
# 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -