Message from @Blaundee
Discord ID: 382380291249143829
```mips
#===============================================================
# Maximum print
#==============================================================
add $s0, $zero, $zero # $s0 i = 0
add $s3, $zero, $zero # $s3 max = 0
MaxL: slt $t0, $s0, $s1 # $t0 = (i < amt) ? 1 : 0
beq $t0, $zero, MaxE # !(i < amt) => MaxE
sll $t0, $s0, 2 # $t0 = i * 4
add $t0, $s2, $t0 # $t0 = arr + i * 4
lw $t1, 0($t0) # $t1 = arr[i]
slt $t0, $s3, $t1 # $t0 = (max < arr[i]) ? 1 : 0
beq $t0, $zero, MaxJ # !(max < arr[i]) => MaxE
add $s3, $zero, $t1 # max = arr[i]
MaxJ: addi $s0, $s0, 1 # i = i + 1
j MaxL # Restart loop
MaxE: add $a0, $zero, $s3 # $a0 = max
addi $v0, $zero, 1 # Prep to print for int
syscall # Print max
```
^^^original
oh shit
OH SHIT
```mips
#===============================================================
# Maximum print
#===============================================================
add $s0, $zero, $zero # $s0 i = 0
lw $s3, 0($s2) # $s3 max = arr[0] <<<FIX
MaxL: slt $t0, $s0, $s1 # $t0 = (i < amt) ? 1 : 0
beq $t0, $zero, MaxE # !(i < amt) => MaxE
sll $t0, $s0, 2 # $t0 = i * 4
add $t0, $s2, $t0 # $t0 = arr + i * 4
lw $t1, 0($t0) # $t1 = arr[i]
slt $t0, $s3, $t1 # $t0 = (max < arr[i]) ? 1 : 0
beq $t0, $zero, MaxJ # !(max < arr[i]) => MaxE
add $s3, $zero, $t1 # max = arr[i]
MaxJ: addi $s0, $s0, 1 # i = i + 1
j MaxL # Restart loop
MaxE: add $a0, $zero, $s3 # $a0 = max
addi $v0, $zero, 1 # Prep to print for int
syscall # Print max
```
programing
...........
^^^fixed
PROGRAMING!!!!!
❤ ViperChan
```mips
add $s3, $zero, $zero ---> lw $s3, 0($s2)
```
Only change I needed
It took me 2 hours to find this god damn bug
```
You are just simply too awesome!
Thank you for gracing me with your energetic presence!
Words cannot express the amount of gratitude I have for you!
```
Wow
Just went to do my laundry
Someone had some DANK weed
my colleagues just program all fucking day for a robot that presses shit
presses shit?
manufacturing purposes
oh
engineering yo
that probably would be written in a similarly gross assembly langauge
MATLAB up in this bitch
oh god what
why???
amirite
that's not even a fully fleshed out langauge...
i know
It's like a weird in between for learners
havent programmed in about 5 years
only made VBA on excel
I've got a really long bit of code trying to get a B+Tree data structure working with 2 random access files in memory
One file for the data of the entries and the other for the structure of the tree
oh boy
structures