汇编语言编写自动输出26个字母并能倒序输出

 DATA SEGMENT

   BUF DB 26 DUP(?)

 DATA ENDS

CODE SEGMENT

ASSUME CS:CODE,DS:DATA

START:MOV AX,DATA

          MOV DS,AX

          LEA SI,BUF

          MOV CX,26

         MOV DL,'A'

    X:  MOV AH,02H

         INT 21H

         INC SI

         INC DL

         DEC CX

         JNZ X

         DEC SI

         MOV DI,SI

         MOV CX,26

  X1:  MOV DL,[DI]

         MOV AH,02H

         INT 21H

         DEC DI

         DEC CX

          JNZ X1

        MOV AH,4CH

       INT 21H

CODE ENDS

        END START

      

你可能感兴趣的:(汇编语言)