获取寄存器EAX中的字符串长度
在call readmsg之后
输入了一个字符串存到eax里,接下来如何将输入到eax中的字符个数得出?
求大家指点。
[解决办法]
- Assembly code
mov 变量, eaxxor edi, edixchg edi, eaxor ecx, -1repnz scasbnot ecxdec ecx; ecx就是字符串长度
发布时间: 2012-03-02 14:40:29 作者: rapoo
获取寄存器EAX中的字符串长度
在call readmsg之后
输入了一个字符串存到eax里,接下来如何将输入到eax中的字符个数得出?
求大家指点。
[解决办法]
mov 变量, eaxxor edi, edixchg edi, eaxor ecx, -1repnz scasbnot ecxdec ecx; ecx就是字符串长度