diff options
author | Treeki <treeki@gmail.com> | 2012-09-27 06:08:02 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-27 06:08:02 +0200 |
commit | 87cb3ef8451f6e6dc0f642d22f5335c1c4f4b064 (patch) | |
tree | ee84faa773436063126b18cc31da3caa04ccdb3c /src | |
parent | e30d836af369f251f83375dd9a9dbab435ee61f1 (diff) | |
download | kamek-87cb3ef8451f6e6dc0f642d22f5335c1c4f4b064.tar.gz kamek-87cb3ef8451f6e6dc0f642d22f5335c1c4f4b064.zip |
a tiny bit of savefile RE, and default world stuff in the savefile
Diffstat (limited to '')
-rw-r--r-- | src/fileselect.S | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/fileselect.S b/src/fileselect.S index 16a1047..6ee1c39 100644 --- a/src/fileselect.S +++ b/src/fileselect.S @@ -247,6 +247,22 @@ FSDebugStates: addi r1, r1, 0x10 blr +.global DefaultSavefileInfo +DefaultSavefileInfo: + addi r4, r3, 0x6FC + lis r5, DefaultSavefileInfoData@h + ori r5, r5, DefaultSavefileInfoData@l + lis r6, DefaultSavefileInfoDataEnd@h + ori r6, r6, DefaultSavefileInfoDataEnd@l +DSFICopyLoop: + lwz r7, 0(r5) + stw r7, 0(r4) + addi r4, r4, 4 + addi r5, r5, 4 + cmpw r5, r6 + blt DSFICopyLoop + blr + .align 4 .data @@ -281,3 +297,16 @@ ConvertedWorldName: .short 0,0,0,0,0,0,0,0,0,0,0,0 # 12 .short 0,0,0,0,0,0,0,0,0,0,0,0 # 12 +.align 4 +DefaultSavefileInfoData: +.string "Yoshi's Island" #15 +.byte 0,0,0,0,0,0,0,0,0,0,0 # 11 +.byte 0,0,0,0,0,0,0,0,0,0 # 10 +.long 0xFFFF99FF,0x1FB423FF +.long 0x173714FF,0x3C9135FF +.long 0xFFFF99FF,0x1FB423FF +.short 0x75,0x2E,0xB +.byte 0,0 + +DefaultSavefileInfoDataEnd: +.long 0 |