Manipulating Strings in Assembly (MASM)
问题 .data source BYTE "Defense mechanism",0 target BYTE SIZEOF source DUP(0) .code main PROC mov esi, OFFSET target mov edi, OFFSET target mov ecx, SIZEOF source L1: mov al,[esi] ; get a character from source mov [edi],al ; store it in the target inc esi ; move to next character inc edi loop L1 In the .data section, I see that source is defined as the string. In the .code section, I see that the memory location of target is stored in the source index. Shouldn't I want the source index ( ESI ) to