|
|
|
[求助]repnz scasb的理解
[QUOTE=小虾;919253]repnz指令循环执行特定搭配的指令,直到zf标志位置位或ecx为0,才退出循环执行。 scasb/scasw/scasd指令是串比较指令,它的作用是将[edi]中的数据以byte/word/dword类型和al/ax/eax进行比较。并edi+1/edi+2/edi+4。如果[edi]中的数据和...[/QUOTE] 讲的非常详细,对我来说很重要!致谢一下小虾版主 顺便复习一下你下面的例子 mov edi,offset lpszString ;譬如字符串是‘abc’ mov ecx,-1 ;ecx=-1 xor eax,eax ;eax=0 repnz scasb ;三个字符,每次ecx都-1所以ecx=-4 not ecx ;1111 1011b取反0000 0100b 现在ecx=4 dec ecx ;当代码执行到这一行时,ecx==lpszString字符串的长度。 最后4-1,所以字符串长度为3 是这样吧? |
|
[求助]repnz scasb的理解
哦 如果是scasb,应该是edi+1 |
|
|
|
[求助]repnz scasb的理解
根据上下文理解,是 从edi开始的字节 和 eax 相比,如果相等,零标志位1,停止对比。不等edi+2,继续对比,ecx保存对比的长度 如果是scasd,后面是D,双字对比,不等则edi+4 现在只是知道这些 |
|
|
|
[讨论]rc文件编辑器,你们选什么?
我在华军和其他网站下这个东西怎么360都报毒啊 |
|
|
|
|
|
|
|
[求助]Radasm如何编译
代码是这样的 .386 .model flat,stacall option casemap:none include windows.inc include user32.inc include user32.lib17FE4E2E1EH include kernel32.inc include kernel32.lib .data szCaption db 'A MessageBox',0 szText db 'Hello,World',0 .code start: invoke MessageBox,NULL,offset szText,offset szCaption,MB_OK invoke ExitProcess,NULL end start |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值