LC3 Multiplication -
so have lc3 coding assignment have implement , test user subroutines input , output of unsigned integers in decimal format. our input have sequence of keystrokes construct single integer value applying repeated multiplication algorithm, multiplication 10 via 4 additions. not understanding concept of multiplication 4 additions. please explain?
x
number want multiply 10
a = x+x = 2x b = a+a = 4x c = b+b = 8x d = a+c = 10x
Comments
Post a Comment