Trouble when reverse and display string in assembly
问题 here is my code: model small stack 100h .data string1 db "Khoa$" string2 db 4 dup(?) count dw 4 .code begin: mov ax,@data mov ds,ax mov es,ax mov cx,count mov si,0 mov di,0 add di,count dec di again: mov al,string1[si] mov string2[di],al inc si dec di loop again mov ah,9 lea dx,string1 int 21h end begin in this part mov ah,9 lea dx,string1 int 21h when i try to display string1 to console, it's ok. but no result with string2. i'm new to assembly. Please help! 回答1: Although this is homework,