#int main(void) { # unsigned int x = 42; # x = x >> 1; # printf("%d\n",x); # x = x << 2; # printf("%d\n",x); # return 0; #} main: li $t0, 42 #unsigned int x = 42 srl $t0, $t0, 1 #x = x >> 1 li $v0, 1 #printf("%d"); move $a0, $t0 syscall li $v0, 11 #printf("%c",'\n') li $a0, '\n' syscall sll $t0, $t0, 2 #x = x << 2 li $v0, 1 #printf("%d"); move $a0, $t0 syscall li $v0, 11 #printf("%c",'\n') li $a0, '\n' syscall li $v0, 0 #return 0 jr $ra