Fixed function notations in f0 and f1.

This commit is contained in:
Filipe Rodrigues 2023-02-05 22:26:30 +00:00
parent 111b4a1c15
commit 7e54fd6606
2 changed files with 3 additions and 3 deletions

View File

@ -1,14 +1,14 @@
.include "macros.s"
# Returns the pointer to the current digimon stat
# `fn f0(u32 value) -> *u32`
# `fn f0(value: u32) -> *u32`
.section "section_f0"
.global f0
f0:
addiu $sp, -24
sw $ra, 16($sp)
# If the return from `u32 idx = f1()` is negative, return 0
# If the return from `idx = f1()` is negative, return 0
jal f1
nop
move_ $v1, $v0

View File

@ -1,7 +1,7 @@
.include "macros.s"
# Returns the digimon stat index of the first digimon with `value0 = value`
# `fn f1(u32 value) -> u32`
# `fn f1(value: u32) -> i32`
.section "section_f1"
.global f1
f1: