微机原理题 求大神帮忙 财富值不是问题 以身相许都中啊 急急急啊 求自动化大神帮帮忙吧 100
1个回答
展开全部
(先解答第五题,待楼主采纳后再提供第六题的电路图)
.
DATA SEGMENT
DA1 DB "ABCD", "1234"
DA2 DW 3 DUP(10,20)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
START: MOV AX, DATA
MOV DS, AX
LEA SI, DA1 ;;SI =0000H
LEA DI, DA2 ;;DI =0008H
MOV AX, 05H[SI] ;;AX =3332H
MOV CX, AX ;;CX =3332H
MOV BX, 05H[DI] ;;BX =1400H
ADD AX, 03[DI] ;;AX =3332H +0A00H =3D32H
MOV DX, AX ;;DX =3D32H
SUB CL, 30H ;;CX =3332H -30H =3302H
SAR AX, CL ;;AX =33D2H右移2位 =0F4CH
INT 3
CODE ENDS
END START
;;
;;上述程序运行后:
;;AX =0F4CH
;;BX =1400H
;;CX =3302H
;;DX =3D32H
;;DI = 0008H
.
DATA SEGMENT
DA1 DB "ABCD", "1234"
DA2 DW 3 DUP(10,20)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
START: MOV AX, DATA
MOV DS, AX
LEA SI, DA1 ;;SI =0000H
LEA DI, DA2 ;;DI =0008H
MOV AX, 05H[SI] ;;AX =3332H
MOV CX, AX ;;CX =3332H
MOV BX, 05H[DI] ;;BX =1400H
ADD AX, 03[DI] ;;AX =3332H +0A00H =3D32H
MOV DX, AX ;;DX =3D32H
SUB CL, 30H ;;CX =3332H -30H =3302H
SAR AX, CL ;;AX =33D2H右移2位 =0F4CH
INT 3
CODE ENDS
END START
;;
;;上述程序运行后:
;;AX =0F4CH
;;BX =1400H
;;CX =3302H
;;DX =3D32H
;;DI = 0008H
追问
亲,我还是看不懂 能加你企鹅 给我讲讲么
追答
我不上QQ
以上解答,在关键指令右边的注释是该条指令执行的结果,你读不明?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询