If I were to try to calculate the number of 1's in the dw data, how would I go about that? I want to store the number of 1's in memory sum. I am using EBE to code in 64 bit Assembly Language.
segment .data
       data     dw  1011011011001010b
       sum  dq  0
       size     db  16
segment .text
global main
main:
 
     
    