Hi, I am wrinting a porgram for my assembly class and this little snippet keeps crashing and I don't understnd why. Could someone please point out what I am doing wrong?
; Program Description:Uses a procedure to contantenate two strings. Must have available space in target string.
; Date Created:4/25/04
; Last Modification Date:
INCLUDE Irvine32.inc
Str_concat PROTO,
ptrSourceTR BYTE,
ptrTargetTR BYTE
.data
targetStr BYTE "ABCDE", 10 DUP(0)
sourceStr BYTE "FGH", 0
.code
main PROC
INVOKE Str_concat, ADDR targetStr, ADDR sourceStr
exit ; exit to operating system
main ENDP
Str_concat PROC,
ptrSourceTR BYTE,
ptrTargetTR BYTE
Str_concat ENDP
; (insert additional procedures here)
END main
; Program Description:Uses a procedure to contantenate two strings. Must have available space in target string.
; Date Created:4/25/04
; Last Modification Date:
INCLUDE Irvine32.inc
Str_concat PROTO,
ptrSourceTR BYTE,
ptrTargetTR BYTE
.data
targetStr BYTE "ABCDE", 10 DUP(0)
sourceStr BYTE "FGH", 0
.code
main PROC
INVOKE Str_concat, ADDR targetStr, ADDR sourceStr
exit ; exit to operating system
main ENDP
Str_concat PROC,
ptrSourceTR BYTE,
ptrTargetTR BYTE
Str_concat ENDP
; (insert additional procedures here)
END main