简单的汇编程序(作业题)(回答好的加分)

2024-12-19 05:46:43
推荐回答(2个)
回答1:

ORG 2000H
ARY DW -4,3,-2,1
CNT DW $ -ARY
VAR DW ARY,$ +4
.
.
.
MOV AX,ARY ;AX=0FFFCH
MOV BX,OFFSET VAR ;BX=2008H
MOV CX,CNT ;CX=8
MOV DX,VAR+2 ;DX=200EH
LEA SI,ARY ;SI=2000H
此程序段执行后,
AX=0FFFCH
BX=2008H
CX=8
DX=200EH
SI=2000H

回答2:

ORG 2000H
ARY DW -4,3,-2,1
CNT DW $ -ARY
VAR DW ARY,$ +4
.
.
.
MOV AX,ARY ;AX=0FFFCH
MOV BX,OFFSET VAR ;BX=2008H
MOV CX,CNT ;CX=8
MOV DX,VAR+2 ;DX=200EH
DX=200EH
SI=2000H