Message from @DanielKO
Discord ID: 391753721920618496
We need a #geeks and a #games channel.
^^^
Only soccer moms and the weak fear everyday tools like firearms.
And a #meta channel too.
Been saying that since I joined.
la $s5, ans6
addi $t8, $zero, 3
addi $t9, $zero, 2
div $t1, $t8
#addi $s5, $HI, 0
mfhi $s5
add $s5, $s5, $t7
mult $s5, $t8
#addi $s5, $LO, 0
mflo $s5
div $s5, $t5
#addi $s5, $LO, 0
mflo $s5
sub $s5, $t3, $s5
la $a0, answer6
li $v0, 4
syscall
la $a0, 0($s5)
li $v0, 1
syscall
la $a0, space
li $v0, 4
syscall
AND A MUSIC BOT
how is that code?
Looks like JDM already checked out
```MIPS
la $s5, ans6
addi $t8, $zero, 3
addi $t9, $zero, 2
div $t1, $t8
#addi $s5, $HI, 0
mfhi $s5
add $s5, $s5, $t7
mult $s5, $t8
#addi $s5, $LO, 0
mflo $s5
div $s5, $t5
#addi $s5, $LO, 0
mflo $s5
sub $s5, $t3, $s5
la $a0, answer6
li $v0, 4
syscall
la $a0, 0($s5)
li $v0, 1
syscall
la $a0, space
li $v0, 4
syscall
```
wow
I put this in a #nsfw channel
Or just join jdm's other discord
that fggot ha his own?
He has a youtube channel too
Getting back on topic
lol
lol
like JDM
any of you guys ever had to program in assembly?
Yes.
that was most cancer
Worst assembly I had to deal with was CUDA/PTX asm.
lol
Had to literally edit the assembly by hand because the compiler was generating wrong code.
wow
that sucks
Back in the CUDA 1.0 days.
```Java
java.lang.NullPointerException
```
FUUUUUUCK OOOOOOOOOOOOOOFFFFFFFFFFFFFFFFFFFFFF
AAAAAAHHHHHHHHHHHHH
lol
post your code dude
Had to translate this
debugg session
Too much to post
```CPP
// The function1 is a recursive procedure defined by:
// function1(n) = 2*n if n <= 4
// = n*function1(n-2) + function1(n-3) + n otherwise.
int function1(int n)
{
if (n <= 4)
{
return 2*n;
}
else
{
int comp = n*function1(n-2) + function1(n-3) + n;
return comp;
}
}
// The main calls function1 by entering an integer given by a user.
void main()
{
int ans, n;
printf("Enter an integer:\n");
// read an integer from user and store it in "n"
scanf("%d", &n);
ans = function1(n);
// print out the solution computed by function 1
printf("The solution is: %d\n", ans);
return;
}
```
I know what's wrong (I think)