汇编刷题:显示ABCDEFGH 八个字母
DATA SEGMENT
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:
MOV AX,DATA
MOV DS,AX
MOV CX,8
MOV AH,02H
MOV DL,40H
SIGN:
INC DL
INT 21H
LOOP SIGN
MOV AH,4CH
INT 21H
CODE ENDS
END START
DATA SEGMENT
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:
MOV AX,DATA
MOV DS,AX
MOV CX,8
MOV AH,02H
MOV DL,40H
SIGN:
INC DL
INT 21H
LOOP SIGN
MOV AH,4CH
INT 21H
CODE ENDS
END START