Need your help.
I'm inputting two digit number (99) and multiplying it by one digit number (9) but my output is incorrect.
I'm inputting two digit number (99) and multiplying it by one digit number (9) but my output is incorrect.
Show us what you've got! ("code" between "[]"s at the beginning of your code and "/code" between "[]"s at the end of your code makes it a lot more readable.)
The "mul" instruction multiplies two 8-bit numbers and gives a 16-bit result (in ax), or multiplies two 16-bit numbers and gives a 32-bit result (in dx:ax), or multiplies two 32-bit numbers and gives a 64-bit result (in edx:eax)... if that helps you any.
Could be a problem in how you display the output, too. Impossible to know without seeing more of what you're doing.
Best,
Frank
The "mul" instruction multiplies two 8-bit numbers and gives a 16-bit result (in ax), or multiplies two 16-bit numbers and gives a 32-bit result (in dx:ax), or multiplies two 32-bit numbers and gives a 64-bit result (in edx:eax)... if that helps you any.
Could be a problem in how you display the output, too. Impossible to know without seeing more of what you're doing.
Best,
Frank