Unable to reverse string in 8086 MASM
问题 I've written some 8086 assembly code to reverse a string. I'm relatively new to assembly so please bear with me. The logic is that I define a string called 'str1'. I move this into the SI Register. Suppose string 'str1' is "Hello$" , then I load the address of 'str1'+5 into SI . Now, I load an address, say 5000 into DI . And I load each character from SI into DI and everytime I increment SI and decrement SI till 5 times. Here is the code assume cs:code,ds:data data segment str db "Hello$"