I need to understand, what this code is doing, i dont know assambly coding .
what would be the impact, if i change this logic with corrosponding c code,
thanks in adv.
Code:WORD lookKbits(BYTE k) { _asm { mov dl, k mov cl, 16 sub cl, dl mov eax, [wordval] shr eax, cl } } WORD WORD_hi_lo(BYTE byte_high,BYTE byte_low) { _asm { mov ah,byte_high mov al,byte_low } } SWORD get_svalue(BYTE k) { _asm { xor ecx, ecx mov cl,k mov eax,[wordval] shl eax,cl shr eax, 16 dec cl bt eax,ecx jc end_macro signed_value:inc cl mov ebx,[start_neg_pow2] add ax,word ptr [ebx+ecx*2] end_macro: }



LinkBack URL
About LinkBacks





