Monday, November 2, 2020

8086 assembly program to Count Number of 1's in a 8-bit number register

Hey friends! 

Today we will take a look at the program of microprocessor 8086 assembly program of 8-bit to Count the number of 1's in the register.

Lets Begin!!.....


data segment

num1 db 2100h

counting db oh

data ends

code segment

start :

assume cs:code, ds:data

mov ax,data

mov ds,ax

mov ax,num1

mov bl ,00h

mov cx,0010h

aa: rcl ax

jnc nn

inc bl

nn:loop aa

mov counting,bl

mov ah,4ch

int21h

code ends

end start

Programs:-

For many other Language Programs of microprocessor 8086, C++ , Data Structures and MSBTE diploma and engineering related concepts visit our  BLOG

No comments:

Post a Comment