Use this WWW form to submit your assignment. You may submit your assignment as many times as you wish; when the submission deadline, before 11:59PM, Tuesday, March 30, 2021, is reached, your last recorded submission will be the one counted by the TA for grading.
Fill in the following as instructed via the announcement on Canvas:
Your account is
Your password is
int a[3] = { 601, 86, 42, 22 };
la $t0, x lw $t1, 0($t0) la $t2, y lw $t3, 0($t2) l1: bne $0, $t3, l2 addu $t1, $t1, $t3 beq $t1, $t1, l1 l2: sw $t1, 0($t0)
extern int x, y, z; void popcount(void) { int t0 = y; int t1 = 0; while (t0) { t1 = t1 + 1; t2 = t0 - 1; t0 = t0 & t2; } x = t1; }
#include <iostream> using namespace std; int a=380, b=480, c=42; void f(int *x, int &y, int z) { ++*x; ++y; ++z; } int main() { cout <<"a="<<a <<" b="<<b <<" c="<<c <<endl; f(&a,b,c); cout <<"a="<<a <<" b="<<b <<" c="<<c <<endl; }
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.