汇编出错,The NTVDM cpu has encpuntered an illegal instruction
DATAS SEGMENTDW 0123H,0456H,0789H,0abcH,0defH,0fedH,0cbaH,0987H
DATAS ENDS
STACKS SEGMENT
DW 0,0,0,0,0,0,0,0
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
MOV AX,STACKS
MOV SS,AX
MOV SP,16
MOV AX,DATAS
MOV DS,AX
MOV BX,0
MOV CX,6
S:
PUSH DS:[BX]
ADD BX,2
LOOP S
MOV BX,0
MOV CX,6
S1:
POP DS:[BX]
add bx,2
LOOP S1
MOV AH,4CH
INT 21H
CODES ENDS
END START
这个代码的作用是前面6个数组倒置