Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help

Status
Not open for further replies.

ayodele

Programmer
Oct 24, 2002
1
US
this program uses an array to reverse the order of a string in place but the output is very unusual

here is the code


.data
string BYTE 'abcdefghij',0
count dWORD ($ - string -1)/2

.code
main PROC
MOV ECX, count


L1:
mov esi, offset string
call WriteString


mov edi, offset string + 9
mov edi, offset count - 2
call WriteString
mov eax,1000
call Delay
loop L1
exit
main ENDP
END main
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top