Alright, our teacher gets mad when we even ask him questions at all about assignments. I've got to write a program that multiplies a 24bit number by an 8bit number to get a 32bit number, in a byte by byte method. If I used max values (ie FFFFFFh and FF) i know i'd have FF as al obviously but after that I'm at a loss. It wouldn't be so hard to me if it weren't for the byte by byte method needed. Like would I move first two FFs of the 24bit to bx and the last 4 F's to cx then multiply out bl by al and bh by al then add them then do the same for cx? I haven't a clue! Any help in the right direction of methodology of thinking would be greatly appreciated. Thanks in advance.
Question
Terrigamer
Alright, our teacher gets mad when we even ask him questions at all about assignments. I've got to write a program that multiplies a 24bit number by an 8bit number to get a 32bit number, in a byte by byte method. If I used max values (ie FFFFFFh and FF) i know i'd have FF as al obviously but after that I'm at a loss. It wouldn't be so hard to me if it weren't for the byte by byte method needed. Like would I move first two FFs of the 24bit to bx and the last 4 F's to cx then multiply out bl by al and bh by al then add them then do the same for cx? I haven't a clue! Any help in the right direction of methodology of thinking would be greatly appreciated. Thanks in advance.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts