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

Info icon This 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
Image of page 1

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

View Full Document Right 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
Image of page 2
Image of page 3

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

View Full Document Right Arrow Icon
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern