assume cs:code,ds:data
data segment
org 2000h
series db 56h,32h,45h,11h,32h,87h,97h,65h,55h,88h
numcount db 00h
data ends
code segment
start:mov ax,data
mov ds,ax
mov si,2000
mov cx,0ah
go:mov ax,[si]
test ax,10h
jz next
inc numcount
next:inc si
dec cx
jnz go
mov ah,4ch
int 21h
code ends
end start
data segment
org 2000h
series db 56h,32h,45h,11h,32h,87h,97h,65h,55h,88h
numcount db 00h
data ends
code segment
start:mov ax,data
mov ds,ax
mov si,2000
mov cx,0ah
go:mov ax,[si]
test ax,10h
jz next
inc numcount
next:inc si
dec cx
jnz go
mov ah,4ch
int 21h
code ends
end start
superb job.. each and every program is simply awesome.. I am your fan..:) thank you sooo much..:)
ReplyDelete