Assembly Addition summation under 15 auto converts to hex

30 Views Asked by At

for my assignment I have to make a fibonacci sequence that generates up to 15 numbers. Whenever I add any numbers that sum between 10-15, I get the hex value of them in memory and in the register. What do I do about that?

Im using eax and ebx to add the numbers and I cant figure out how to keep it from converting to hex. Every other number stays in decimal. For example when I add 8 and 5 using this code:

mov eax, 5
mov ebx, 8
add eax, ebx

The value in eax would be 0D, help?

0

There are 0 best solutions below