summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2022-03-14 09:58:54 -0400
committerGitHub <noreply@github.com>2022-03-14 09:58:54 -0400
commitac5274b8c2e65ad0c00ff7268729f0e42856bfc2 (patch)
tree04ebd9973e5c6eb528ceb8b09a3810f4cd58d244 /src
parentb7a624077caceaccb9159140c5d6cd4db8c3a792 (diff)
parentaea142ba03cfd93f16c2aa08098a513a7326320f (diff)
Merge pull request #494 from PikalaxALT/replace-install
Sync INSTALL.md with Emerald
Diffstat (limited to 'src')
-rw-r--r--src/crt0.s24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/crt0.s b/src/crt0.s
index 0d891141e..7402f69e9 100644
--- a/src/crt0.s
+++ b/src/crt0.s
@@ -80,12 +80,11 @@ CartIdent:
.4byte 0x838
.4byte 0x839
.4byte 0x182
- .4byte 0xA0A0A07
- .4byte 0xC060C0C
- .4byte 0xC121006
- .4byte 0x8010B0F
- .4byte 0xC
- .4byte 0xF24 @ sizeof(struct SaveBlock2)
+ .byte 7, 10, 10, 10, 12, 12, 6, 12
+ .byte 6, 16, 18, 12, 15, 11, 1, 8
+ .byte 12
+ .align 2, 0
+ .4byte 0xF24 @ sizeof(struct SaveBlock2) /* 88 */
.4byte 0x3D68 @ sizeof(struct SaveBlock1)
.4byte 0x34 @ offsetof(struct SaveBlock1, playerPartyCount)
.4byte 0x38 @ offsetof(struct SaveBlock1, playerParty)
@@ -96,9 +95,10 @@ CartIdent:
.4byte 0xAD @ offsetof(struct SaveBlock2, ?????? (0xAD))
.4byte 0xAD @ offsetof(struct SaveBlock2, ?????? (0xAD))
- .4byte 0x30BB
- .4byte 0x30A7
- .4byte 0
+ .4byte 0x30BB @ offsetof(struct SaveBlock1, externalEventFlags)
+ .4byte 0x30A7 @ offsetof(struct SaveBlock1, externalEventData)
+ .byte 0
+ .align 2, 0
.4byte gBaseStats
.4byte gAbilityNames
.4byte gAbilityDescriptionPointers
@@ -106,9 +106,9 @@ CartIdent:
.4byte gBattleMoves
.4byte gBallSpriteSheets
.4byte gBallSpritePalettes
- .4byte 0xA8
- .4byte 0x82C
- .4byte 0x83B
+ .4byte 0xA8 @ offsetof(struct SaveBlock2,gcnLinkFlags)
+ .4byte 0x82C @ FLAG_SYS_GAME_CLEAR
+ .4byte 0x83B @ FLAG_SYS_RIBBON_GET
.4byte 0x3A0D1E2A
.4byte 0x1E2B
.4byte 0x298 @ offsetof(struct SaveBlock1, pcItems) // maybe all items were in a struct together?