Sunday, April 8, 2012

Program to find the number of numbers having 5th bit as one in a series using 8086

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

1 comment:

  1. superb job.. each and every program is simply awesome.. I am your fan..:) thank you sooo much..:)

    ReplyDelete

DC motor control with Pulse Width Modulation Part 1

DC Motor intro DC motor is a device which converts electrical energy into kinetic energy. It converts the DC power into movement. The typica...