apndstr.asm
来自「开放源码的编译器open watcom 1.6.0版的源代码」· 汇编 代码 · 共 36 行
ASM
36 行
include ..\cwlib.inc
scode
;-------------------------------------------------------------------------
;
;Append a string to another string.
;
;On Entry:
;
;ESI - source string.
;EDI - destination string to append to.
;
AppendString proc near
pushm eax,ecx,esi,edi
or ecx,-1
xor al,al
repne scasb ;Find end of destination string.
dec edi
push esi
xchg esi,edi
or ecx,-1
repne scasb
xchg esi,edi
neg ecx
inc ecx
pop esi
rep movsb
popm eax,ecx,esi,edi
ret
AppendString endp
efile
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?