INCLUDE Irvine32.inc


.data

source  BYTE  "Assembly-Programming-Examples",0

target  BYTE  SIZEOF source DUP(0)


.code

main PROC

; Point ESI to the end of the source string:

mov  esi,OFFSET target - 2


; Point EDI to the beginning of the target string:

mov  edi,OFFSET target

mov  ecx,SIZEOF source - 1 ; loop counter

L1:

mov  al,[esi] ; get a character from source

mov  [edi],al ; store it in the target

dec  esi ; move to next character

inc  edi

loop L1 ; repeat for entire string


/* 이쯤에 바른구문과 역순의 구문을 출력하는 코드를 넣어야함

*/


exit

main ENDP

END main



그리고 이 코드에 대해 주석좀 알려주세요 ㅠ