;PROGRAM OF NUMBER OF POSITIVE AND NEGATIVE NUMBERS OF THE GIVEN NUMBERS
data segment
source db 12h,0abh,34h,0cdh,056h
leng equ $-source
data ends
code segment
assume cs:code, ds:data
start:
mov ax,data
mov ds,ax
lea si,source
mov cl,leng
mov bl,0h
mov dl,0h
reptet:
mov al,[si]
shl al,1
jnc pos
inc dl
jmp fly
pos:
inc bl
fly:
inc si
dec cl
jnz reptet
int 3
code ends
end start
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment