Education for ALL
Pages
DL
MP
MC
COA
ES
NM
CG
OS
IP
DC
CN
CNS
Cryptography
C
C++
DSA
DBMS
SAD
SE
SPM
IoT
Blockchain
DS
AI
ML
PROGRAM TO COUNT NUMBER OF 1s IN REGISTER A
MVI C,00H ;COUNTER FOR 1
MVI B, 8 ;DOWN COUNTER
;FOR 8-BIT REGISTER A
UP: RAL
JNC PASS
INR C
PASS: DCR B
JNZ UP
HLT
No comments:
Post a Comment
Newer Post
Older Post
Home
No comments:
Post a Comment