WA5.mine - Sheet1 Page 3 Description: Write a procedure...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 TITLE WA5 Concatinate two strings.(main.asm) INCLUDE Irvine32.inc Str_concat PROTO, source:PTR DWORD, target:PTR DWORD t .data targetStrDWORD 1238h sourceStrDWORD 3678h s .code main PROC m INVOKE Str_concat, ADDR sourceStr, ADDR targetStr main ENDP Str_concat PROC USES eax ecx esi edi, source:PTR DWORD, target:PTR DWORD mov eax, source m call WriteHex call Crlf c
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 cld c mov esi, source mov edi, target m mov ecx, 2 rep movsb r mov eax, target call WriteHex call Crlf ret Str_concat ENDP END main
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Sheet1 Page 3 Description: Write a procedure named Str_concat that concatenates a source string to the end of a target string. Sufficient space must be available in the target string before this procedure is called. Pass pointers to the source and target strings. source string target string source string target string write the hex value of eax Sheet1 Page 4 clear direction flag. shl target,16 add edi,2 write the hex value of eax...
View Full Document

This note was uploaded on 12/30/2009 for the course COS 231 taught by Professor Jasonlitz during the Summer '09 term at Thomas Edison State.

Page1 / 4

WA5.mine - Sheet1 Page 3 Description: Write a procedure...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online