JMP START
MSG1 DB "ISSK$"
MSG2 DB 80 DUP("$")
START:
MOV SI,00H
MOV DI,00H
LOOPER:
CMP MSG1[DI],"$"
JE COMPARE
INC DI
JMP LOOPER ;AFTER THIS POINT DI=STRINGLENGTH-1
COMPARE:
MOV AL,MSG1[DI]
MOV MSG2[SI],AL
INC SI
DEC DI
CMP MSG1[DI],00H
JE OUTER
JMP COMPARE
OUTER:
MOV DX,OFFSET MSG2
MOV AH,09H
INT 21H
HLT
我的 EMULATOR(emu8086) 的控制台最终打印了一个空白屏幕而不是 Reversed 字符串。我哪里做错了?