新手求教,用debug的时候没死循环,直接运行时出现死循环,是哪错啦
程序代码:
S1 SEGMENT STRING DB 'Hello,world!' ,0DH,0AH,24H S1 ENDS S2 SEGMENT PARA STACK DW 20H DUP(?) TOP LABEL WORD S2 ENDS S3 SEGMENT ASSUME DS:S1,SS:S2,CS:S3 P PROC FAR MOV AX , S1 MOV DS , AX MOV AX , S2 MOV SS , AX LEA SP ,TOP LEA SI,STRING ADD SI,11 MOV CX ,12 L1:MOV DL ,[SI] MOV AH ,2 INT 21H DEC SI LOOP L1 P ENDP S3 ENDS END P