-
Notifications
You must be signed in to change notification settings - Fork 51
Some TCG init procs #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4f93097
Add more BGM and SFX indices
JaceCear 4a4a834
Merge branch 'freshollie:main' into main
JaceCear db4d554
Merge branch 'main' into main
freshollie 50b4827
Merge branch 'freshollie:main' into main
JaceCear 3ac2486
Merge pull request #1 from freshollie/main
JaceCear 47918cd
Merge branch 'freshollie:main' into main
JaceCear 6715e37
Insert flash lib into Tiny Chao Garden
d47718e
Adhere to clang formatting
JaceCear 8136561
Merge branch 'freshollie:main' into main
JaceCear 2618f6f
Some TCG init procedures
JaceCear 122ae59
Merge
JaceCear 3ecf8b0
Use CpuCopy32
JaceCear 21cc63a
Use s32
JaceCear 0768f78
Move sub_0200019c to main.c
JaceCear e99fc82
Nulling around at the speed of sound
JaceCear 74b09a6
Rename to SetVBlankIntr
JaceCear d00c3f4
Move SetVBlankIntr to main
JaceCear File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,6 @@ | |
| #define GUARD_FUNCTIONS_H | ||
|
|
||
| void IntrMain(void); | ||
| void IntrDummy(void); | ||
|
|
||
| #endif // GUARD_FUNCTIONS_H | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,4 +77,6 @@ | |
|
|
||
| #define SYSTEM_CLOCK (16 * 1024 * 1024) // System Clock | ||
|
|
||
| #define ROM_BASE 0x08000000 | ||
|
|
||
| #endif // GUARD_GBA_DEFINES | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #include "global.h" | ||
| #include "agb_flash.h" | ||
| #include "m4a.h" | ||
|
|
||
| extern IntrFunc gIntrTable[4]; | ||
|
|
||
| // TCG = Tiny Chao Garden | ||
| struct TCG_SaveSectorHeader { | ||
| u32 security, version; | ||
| }; | ||
|
|
||
| struct TCG_SaveSectorData { | ||
| struct TCG_SaveSectorHeader header; | ||
|
|
||
| u8 padding_8[0x850]; | ||
| }; /* size:0x858 according to sub_02000248 */ | ||
|
|
||
| // TCG = Tiny Chao Garden | ||
| #define TCG_FIRST_SAVE_SECTOR 10 | ||
| #define TCG_SAVE_SECTOR_COUNT 6 | ||
|
|
||
| extern struct TCG_SaveSectorData gUnknown_03003B80; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw can be
init.cbut it's likely this was just part ofmain.c? Are these called from any other location?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only assuming based on the interrupt stuff being setup as part of
main.cin the base romUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently
sub_0200019cgets only called by main, butsub_02000228is referenced by code.s!Can push
sub_0200019cto main if you preferThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably part of main.c for now