i need to find a way to check number of bits that is current on (1) in the ax register. i was thinking to use in shl or shr, but i do not know how exactly i suppose to use them. this is my code so far:
org 100h
mov ax, 0xffffh
;shr ax TO DO
int 16h
ret
i red in some place that the shift right function can move the bits to the right. so i might should use it by try to "push" the 16 bits to the right every time, and then check the LSB 1 or 0 flag? it sound to me as good idea.