SPP4 - dec edi mov ecx,SIZEOF source L1: mov al,source[esi]...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
TITLE SPP4 INCLUDE Irvine32.inc .data source BYTE "This is the source string",0 target BYTE SIZEOF source DUP(0) t .code main PROC mov esi,0 ;start from the first character of source mov edi,SIZEOF target-1 ;start from the last character of source mov target[edi],0 ;string delimiter in last position
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: dec edi mov ecx,SIZEOF source L1: mov al,source[esi] mov target[edi],al inc esi dec edi loop L1 mov esi,OFFSET target ; offset of variable mov ebx,1 ; byte format mov ecx,SIZEOF target-1 ; counter call DumpMem exit main ENDP END main...
View Full Document

Ask a homework question - tutors are online