Relative Content

Tag Archive for assemblyprintingmipsmultiplicationbit-shift

Having trouble printing proper output (MIPS Multiplication by Addition)

For my assignment I have a MIPS program that does multiplication by addition, via checking the rightmost bit. If it’s a 1, I add. If it’s a 0, I simply do nothing. Afterward, I shift the multiplicand to the left, and the multiplier to the right, and restart the loop until the index is 0 (the index starts at N bits for display). I can get the initial line printed and set up, however afterwards I simply get no output. As a side note, I do use macros established in another file for the sake of easy printing. I also have a separate file as a test method that loads the registers with values.