发布网友 发布时间:2022-06-02 03:32
共1个回答
热心网友 时间:2023-10-27 04:01
DS,没有设置。追答DATA SEGMENT
S1 DB 13, 10
SBUF DB 20 DUP('$'), '$'
DATA ENDS
CODE SEGMENT
ASSUME DS:DATA, CS:CODE
START:
MOV AX, DATA
MOV DS, AX
A:
MOV AH, 08H
INT 21H
SUB AL, 20H
JNZ A
LEA SI, SBUF
MOV CX, 20
C:
MOV AH, 01H
INT 21H
MOV AH, AL
SUB AL, 20H
JZ B
MOV [SI], AH
INC SI
LOOP C
B:
LEA DX, S1
MOV AH, 09H
INT 21H
EXIT:
MOV AH, 4CH
INT 21H
CODE ENDS
END START