Hi guys.
I've got a problem in my addition for my assembly. i'll post the code here
when i tried to add what's in [2] and [4], the output i got is 'b'! The output i want is suppose to be 1+1 = 2 ! not 1+1 = 11 where in ascii value is 'b'. How do i solve this problem? Please do help me! Thanks!Code:CheckBit1 proc mov dl,hammingNum[2] ;lets say [2] stored in side is 1 add dl,hammingNum[4] ;lets say [4] stored in side is 1 also mov hammingNum[0],dl ;store the 1+1 =2 to [0] ;=====REMOVE WHEN NOT NEEDED===== call ClearScreen mov dl,hammingNum[0] mov ah,02h ;display the output here int 21h ret CheckBit1 endp




Reply With Quote