📄 copystr.asm
字号:
include ..\cwlib.inc
scode
;-------------------------------------------------------------------------
;
;Copy a string from one place to another.
;
;On Entry:
;
;ESI - Source string.
;EDI - Destination string.
;
;On Exit:
;
;ALL registers preserved.
;
CopyString proc near
pushm eax,ecx,esi,edi
push esi
xchg esi,edi
or ecx,-1
xor al,al
repnz scasb ;get the strings length.
inc ecx
neg ecx
xchg esi,edi
pop esi
rep movsb ;copy the string.
popm eax,ecx,esi,edi
ret
CopyString endp
efile
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -