mirror of
https://github.com/project-slippi/slippi-ssbm-asm.git
synced 2025-10-05 23:52:43 +02:00
add more comments
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
# Address: 0x80019260
|
||||
################################################################################
|
||||
|
||||
# b 0x34
|
||||
b 0x34
|
||||
|
@@ -2,4 +2,6 @@
|
||||
# Address: 0x801d4760
|
||||
################################################################################
|
||||
|
||||
# The original code returns a bool indicating whether or not the stage file was loaded properly.
|
||||
# Should probably check if the file exists eventually.
|
||||
li r3, 1
|
@@ -1,12 +1,13 @@
|
||||
################################################################################
|
||||
# Address: 0x801d14c4
|
||||
# This just makes it a little bit faster to debug transformations.
|
||||
################################################################################
|
||||
|
||||
.include "Common/Common.s"
|
||||
|
||||
lwz r3, -0x4d28(r13) # yakumono
|
||||
lwz r3, -0x4d28(r13) # stadiums "yakumono" aka stage parameters,
|
||||
|
||||
li r4, 180
|
||||
li r4, 180 # 180 frames
|
||||
stw r4, 0(r3) # initial trans time?
|
||||
stw r4, 4(r3) # max trans time?
|
||||
stw r4, 8(r3) # initial reset timer?
|
||||
|
@@ -28,7 +28,7 @@ CODE_START:
|
||||
backup
|
||||
mr REG_NAME, r3
|
||||
|
||||
# get our data which holds our buffer pointer
|
||||
# get our stage gobj data which holds our archive buffer and size
|
||||
li r3, 2
|
||||
branchl r12, Stage_GetGObj
|
||||
lwz REG_DATA, 0x2C(r3)
|
||||
@@ -41,11 +41,11 @@ CODE_START:
|
||||
mr r3, REG_NAME
|
||||
lwz r4, OFST_BUF(REG_DATA)
|
||||
addi r5, REG_DATA, OFST_SIZE
|
||||
branchl r12, File_Read
|
||||
branchl r12, File_Read # File_Read wont return until the file is loaded
|
||||
|
||||
li r3, 0
|
||||
li r4, SZ_ARCHIVE
|
||||
branchl r12, HSD_MemAllocFromHeap
|
||||
branchl r12, HSD_MemAllocFromHeap # allocate space for the archive
|
||||
mr REG_ARCHIVE, r3
|
||||
|
||||
mr r3, REG_ARCHIVE
|
||||
@@ -58,7 +58,7 @@ CODE_START:
|
||||
branchl r12, Archive_GetSymbol
|
||||
mr REG_MHEAD, r3
|
||||
|
||||
branchl r12, 0x801C62B4 # gets the correct offset from stage data?
|
||||
branchl r12, 0x801C62B4 # gets the correct offset for storing to stage data?
|
||||
mr REG_MDATA, r3
|
||||
|
||||
stw REG_ARCHIVE, OFST_BASE(REG_MDATA)
|
||||
@@ -72,4 +72,4 @@ CODE_START:
|
||||
|
||||
EXIT:
|
||||
restore
|
||||
branch r12, 0x80016678
|
||||
branch r12, 0x80016678 # skip the rest of the function
|
Reference in New Issue
Block a user