汇编语言问题:用PUSH指令将a段中的前8个字型数据,逆序存储到b段中
ASSUMECS:CODEASEGMENTDW1,2,3,4,5,6,7,8AENDSBSEGMENTDW0,0,0,0,0,0,0,0BENDSCODESEGMENTS...
ASSUME CS:CODE
A SEGMENT
DW 1,2,3,4,5,6,7,8
A ENDS
B SEGMENT
DW 0,0,0,0,0,0,0,0
B ENDS
CODE SEGMENT
START:MOV AX,A
MOV DS,AX
MOV AX,B
MOV SS,AX
MOV SP,10H
MOV BX,0
MOV CX,8
S:PUSH [BX]
ADD BX,2
LOOP S
CODE ENDS
END START
问题:
为什么我编译的时候会出现 P2.ASM(3):Out of memory.? 展开
A SEGMENT
DW 1,2,3,4,5,6,7,8
A ENDS
B SEGMENT
DW 0,0,0,0,0,0,0,0
B ENDS
CODE SEGMENT
START:MOV AX,A
MOV DS,AX
MOV AX,B
MOV SS,AX
MOV SP,10H
MOV BX,0
MOV CX,8
S:PUSH [BX]
ADD BX,2
LOOP S
CODE ENDS
END START
问题:
为什么我编译的时候会出现 P2.ASM(3):Out of memory.? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询