求助一下这个程序要怎么输出数组?
问一下这个程序里面怎么把数组N和P,分成两行输出,数组中的个数又要怎么统计并且输出?DATA SEGMENT
M DB 1,2,3,-4,-5,6,-7,8,9,-10,-11,-12,13,14,-15,16,-17,-18,19,20
P DB 20 DUP (?)
N DB 20 DUP (?)
DATA ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATA
START:
MOV AX,DATA
MOV DS,AX
LEA SI,M
LEA DI,P
LEA BX,N
MOV CX,20
S: MOV AL,[SI]
CMP AL,0
JG Z
CMP AL,0
JL F
CMP AL,0
JZ S
Z: CMP CX,0
JZ O
MOV [DI],AL
INC SI
INC DI
LOOP S
F: CMP CX,0
JZ O
MOV [BX],AL
INC SI
INC BX
LOOP S
O: MOV AH,4CH
INT 21H
CODES ENDS
END START