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
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