.MODEL SMALL
.DATA
cr equ 0dh
lf equ 0ah
LIST dW 2579H, 0A500H, 0C009H,0159H,0B900H
COUNT EQU 05H
.CODE
mov ax,@data
mov ds,ax
XOR BX,BX
XOR DX,DX
MOV CL,COUNT
MOV SI, OFFSET LIST
AGAIN: MOV AX,[SI]
SHL AX,01
JC NEGAT
INC BX
JMP NEXT
NEGAT: INC DX
NEXT: ADD SI,02
DEC CL
JNZ AGAIN
MOV ah,4ch
INT 21h
end