汇编语言问题
DATA SEGMENT
DATA1 10H DUP (?)
DATA2 10H DUP (?)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,ES:DATA
START:MOV AX,DATA
MOV DS,AX
MOV ES,AX
MOV CX,
MOV ,OFFSET DATA1
MOV ,OFFSET DATA2
MOV AH, 4CH
INT 21H
CODE ENDS
END START 展开
DATA SEGMENT
DATA1 db 10H DUP (0ffh) ;db 定义字节型数据 0ffh为了测试用
DATA2 db 10H DUP (22h) ;db
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,ES:DATA
START:MOV AX,DATA
MOV DS,AX
MOV ES,AX
MOV CX,16 ;重复次数
MOV si ,OFFSET DATA1 ;将DATA1的首地址给si
MOV di ,OFFSET DATA2
cld ;设置为正向传输
rep movsb ;rep:重复操作,次数由cx决定
;movsb 移动一个字节,来源处:si,目的处:di
MOV AH,4CH
INT 21H
CODE ENDS
END START
;我已经用小写标出填空内容
;你写的标点都是中文标点,不能编译的,必须是英文标点
DATA1 DB 10H DUP (?)
DATA2 DB 10H DUP (?)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,ES:DATA
START:
MOV AX,DATA
MOV DS,AX
MOV ES,AX
MOV CX,10H
MOV SI,OFFSET DATA1
MOV DI,OFFSET DATA2
REP MOVSB
MOV AH, 4CH
INT 21H
CODE ENDS
END START