Use this WWW form to submit your assignment. You may submit your assignment as many times as you wish; when the submission deadline is reached, your last recorded submission will be the one counted by the TA for grading. Note that each question is tagged with the course outcome(s) it addresses.
Your email address is . Your password is .
la $t0, x lw $t1, 0($t0) la $t2, y lw $t3, 0($t2) l1: bne $t1, $zero, l2 addu $t1, $t1, $t3 l2: sw $t1, 0($t0)
extern int x, y, z; void mymul(void) { /* do x = y * z the hard way... */ int t0 = y; int t1 = z; int t2 = 0; int t3 = 1; while (t3 != 0) { if (t0 & t3) { t2 += t1; } t1 += t1; t3 += t3; } x = t2; }
Although this is not a secure server, users are bound by the UK code of conduct not to abuse the system. Any abuses will be dealt with as serious offenses.