测一个字符串长度?求高手!
.section .datadvar:
.int 0
steing:
.asciz"hello"
.section .text
.globl _start
_start:
nop
pushl string
mov $1,%bx
again:
popw %ax
cmp %ax,%bx
jae next
mov $1,%eax
mov $0,%ebx
int 0x80
next:
incl davr
jump again
mov $1,%eax
mov $0,%ebx
int 0x80