AH ve AL de bulunan 8'er bit farklı sayıyı karşılaştırıp. Farklı bitlerin sayısını bulan program Not: 8086x 16 bit mimarisi icin gecerlidir. PHP Code:
org 100h mov BL,00h mov AH, 11111111bmov AL, 10010101bxor AH,ALmov cx,8sum:shr AH,1adc BL,0loop sumhlt

__________________