Skip to content

Commit

Permalink
Decompile unk_02007200 -> systask_environment
Browse files Browse the repository at this point in the history
  • Loading branch information
tgsm committed Oct 18, 2023
1 parent e3a8853 commit a891862
Show file tree
Hide file tree
Showing 45 changed files with 139 additions and 150 deletions.
4 changes: 2 additions & 2 deletions asm/include/overlay_01_021EFB38.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#pragma once
.public UnloadOverlayByID
.public HandleLoadOverlay
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public NARC_New
.public NARC_Delete
.public GfGfxLoader_LoadCharDataFromOpenNarc
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_01_021F4464.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <nitro/fs/overlay.h>
#pragma once
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public sub_0200E374
.public DestroySysTask
.public sub_0201F988
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_01_021F6830.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#pragma once
.public UnloadOverlayByID
.public HandleLoadOverlay
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public BeginNormalPaletteFade
.public IsPaletteFadeFinished
.public sub_0201F988
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_05.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
.public sub_0200398C
.public sub_02003B74
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public NARC_New
.public NARC_Delete
.public NARC_AllocAndReadWholeMember
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_08.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
.public sub_02003370
.public sub_02003B44
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public AllocAndReadWholeNarcMemberByIdPair
.public NARC_New
.public NARC_Delete
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_106.inc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
.public sub_02006118
.public StopSE
.public PlayCry
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public AllocAndReadWholeNarcMemberByIdPair
.public NARC_New
.public NARC_Delete
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_27.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
.public FontID_Release
.public FontID_String_GetWidth
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public NARC_New
.public NARC_Delete
.public GfGfxLoader_LoadCharData
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_28.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.public FontID_Release
.public PlaySE_SetPitch
.public StopSE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public NARC_New
.public NARC_Delete
.public GfGfxLoader_LoadCharDataFromOpenNarc
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_29.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.public FontID_Release
.public FontID_String_GetWidth
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public NARC_New
.public NARC_Delete
.public GfGfxLoader_LoadCharDataFromOpenNarc
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_30.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.public sub_02002B8C
.public LoadFontPal0
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public GfGfxLoader_LoadCharData
.public GfGfxLoader_LoadScrnData
.public GfGfxLoader_GXLoadPal
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_31.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
.public LoadFontPal0
.public LoadFontPal1
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public GfGfxLoader_LoadCharData
.public GfGfxLoader_GXLoadPal
.public GfGfxLoader_GetScrnData
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_32.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.public FontID_Release
.public FontID_String_GetWidth
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public NARC_New
.public NARC_Delete
.public GfGfxLoader_LoadCharDataFromOpenNarc
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_33.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.public FontID_Alloc
.public FontID_Release
.public FontID_String_GetWidth
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public NARC_New
.public NARC_Delete
.public GfGfxLoader_LoadCharDataFromOpenNarc
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_34.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.public FontID_SetAccessDirect
.public FontID_SetAccessLazy
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public GfGfxLoader_LoadCharData
.public GfGfxLoader_LoadScrnData
.public GfGfxLoader_GXLoadPal
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_41.inc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
.public FontID_String_GetCenterAlignmentX
.public sub_02004EC4
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public OverlayManager_CreateAndGetData
.public OverlayManager_GetData
.public OverlayManager_FreeData
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_70.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
.public sub_02004EC4
.public PlaySE
.public StopSE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public OverlayManager_New
.public OverlayManager_Delete
.public OverlayManager_CreateAndGetData
Expand Down
4 changes: 2 additions & 2 deletions asm/include/overlay_80_0223A00C.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
.public PaletteData_LoadNarc
.public sub_02003E5C
.public sub_02003EA4
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public NARC_New
.public NARC_Delete
.public GfGfxLoader_GetPlttData
Expand Down
4 changes: 2 additions & 2 deletions asm/include/render_window.inc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <nitro/fs/overlay.h>
#pragma once
.public sub_020027F0
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public AllocAndReadWholeNarcMemberByIdPair
.public GfGfxLoader_LoadCharData
.public GfGfxLoader_GXLoadPal
Expand Down
4 changes: 2 additions & 2 deletions asm/include/unk_02007200.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <nitro/fs/overlay.h>
#pragma once
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public CreateSysTask
.public DestroySysTask
.public AllocFromHeap
Expand Down
4 changes: 2 additions & 2 deletions asm/include/unk_020163E0.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#pragma once
.public PaletteData_LoadPalette
.public PaletteData_GetUnfadedBuf
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public sub_020163E0
.public sub_0201649C
.public sub_020164C4
Expand Down
4 changes: 2 additions & 2 deletions asm/include/unk_02082908.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
.public LoadFontPal1
.public sub_02004EC4
.public PlaySE
.public sub_02007200
.public sub_02007234
.public CreateSysTaskAndEnvironment
.public DestroySysTaskAndEnvironment
.public OverlayManager_CreateAndGetData
.public OverlayManager_GetData
.public OverlayManager_FreeData
Expand Down
4 changes: 2 additions & 2 deletions asm/overlay_01_021EFB38.s
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ ov01_021EFC94: ; 0x021EFC94
mov r1, #0x24
mov r2, #5
mov r3, #4
bl sub_02007200
bl CreateSysTaskAndEnvironment
bl sub_0201F988
add r4, r0, #0
str r5, [r4, #0x10]
Expand Down Expand Up @@ -228,7 +228,7 @@ ov01_021EFCDC: ; 0x021EFCDC
mov r0, #4
bl FreeToHeapExplicit
add r0, r4, #0
bl sub_02007234
bl DestroySysTaskAndEnvironment
pop {r3, r4, r5, pc}
thumb_func_end ov01_021EFCDC

Expand Down
4 changes: 2 additions & 2 deletions asm/overlay_01_021F4464.s
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ov01_021F4464: ; 0x021F4464
ldr r3, [r5, #0x28]
mov r1, #0x38
mov r2, #5
bl sub_02007200
bl CreateSysTaskAndEnvironment
add r6, r0, #0
bl sub_0201F988
add r4, r0, #0
Expand Down Expand Up @@ -116,7 +116,7 @@ _021F4524:
_021F452A:
ldr r0, [r4]
ldr r0, [r0, #0x34]
bl sub_02007234
bl DestroySysTaskAndEnvironment
mov r0, #0
str r0, [r4]
pop {r4, pc}
Expand Down
4 changes: 2 additions & 2 deletions asm/overlay_01_021F6830.s
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ov01_021F68DC: ; 0x021F68DC
mov r1, #0x10
mov r2, #0xa
mov r3, #4
bl sub_02007200
bl CreateSysTaskAndEnvironment
add r4, r0, #0
bl sub_0201F988
ldr r1, [r5, #0x1c]
Expand Down Expand Up @@ -185,7 +185,7 @@ ov01_021F6930: ; 0x021F6930
bl ov01_021F69A4
add r5, #0xd8
ldr r0, [r5]
bl sub_02007234
bl DestroySysTaskAndEnvironment
mov r0, #1
pop {r3, r4, r5, pc}
_021F6960:
Expand Down
4 changes: 2 additions & 2 deletions asm/overlay_05.s
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ov05_0221BA00: ; 0x0221BA00
ldr r1, _0221BA60 ; =0x00000BD4
ldr r3, [r5, #0x24]
mov r2, #0x64
bl sub_02007200
bl CreateSysTaskAndEnvironment
bl sub_0201F988
ldr r2, _0221BA60 ; =0x00000BD4
mov r1, #0
Expand Down Expand Up @@ -2337,7 +2337,7 @@ _0221CCCA:
add r0, #0x2b
strb r1, [r0]
add r0, r5, #0
bl sub_02007234
bl DestroySysTaskAndEnvironment
mov r0, #1
pop {r3, r4, r5, pc}
thumb_func_end ov05_0221CC74
Expand Down
8 changes: 4 additions & 4 deletions asm/overlay_08.s
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _0221BE2E:
ldr r1, _0221BE8C ; =0x00002090
ldr r3, [r5, #0xc]
mov r2, #0
bl sub_02007200
bl CreateSysTaskAndEnvironment
bl sub_0201F988
ldr r2, _0221BE8C ; =0x00002090
add r4, r0, #0
Expand Down Expand Up @@ -2031,7 +2031,7 @@ _0221CDA8:
add r0, #0x36
strb r1, [r0]
add r0, r5, #0
bl sub_02007234
bl DestroySysTaskAndEnvironment
mov r0, #1
pop {r3, r4, r5, pc}
nop
Expand Down Expand Up @@ -12720,7 +12720,7 @@ ov08_022225D4: ; 0x022225D4
ldr r1, _02222668 ; =0x0000115C
ldr r3, [r5, #0xc]
mov r2, #0x64
bl sub_02007200
bl CreateSysTaskAndEnvironment
bl sub_0201F988
ldr r2, _02222668 ; =0x0000115C
add r4, r0, #0
Expand Down Expand Up @@ -13823,7 +13823,7 @@ _02222EAC:
add r0, #0x26
strb r1, [r0]
add r0, r7, #0
bl sub_02007234
bl DestroySysTaskAndEnvironment
mov r0, #1
pop {r3, r4, r5, r6, r7, pc}
nop
Expand Down
4 changes: 2 additions & 2 deletions asm/overlay_106.s
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ ov106_021E5E0C: ; 0x021E5E0C
ldr r3, [r5, #0x28]
mov r1, #0x38
mov r2, #5
bl sub_02007200
bl CreateSysTaskAndEnvironment
add r6, r0, #0
bl sub_0201F988
add r4, r0, #0
Expand Down Expand Up @@ -780,7 +780,7 @@ _021E5EC8:
bl GX_SetBankForLCDC
_021E5ECE:
ldr r0, [r4, #0x34]
bl sub_02007234
bl DestroySysTaskAndEnvironment
pop {r4, pc}
nop
_021E5ED8: .word 0x06820000
Expand Down
8 changes: 4 additions & 4 deletions asm/overlay_27.s
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ov27_02259F80: ; 0x02259F80
lsl r1, r1, #6
mov r2, #0xa
mov r3, #8
bl sub_02007200
bl CreateSysTaskAndEnvironment
add r7, r0, #0
bl sub_0201F988
add r4, r0, #0
Expand Down Expand Up @@ -333,7 +333,7 @@ _0225A246:
mov r0, #4
bl FontID_Release
ldr r0, [sp, #4]
bl sub_02007234
bl DestroySysTaskAndEnvironment
ldr r0, [sp]
mov r1, #5
bl FreeBgTilemapBuffer
Expand Down Expand Up @@ -4457,7 +4457,7 @@ ov27_0225C250: ; 0x0225C250
lsl r1, r1, #2
mov r2, #0xa
mov r3, #8
bl sub_02007200
bl CreateSysTaskAndEnvironment
add r6, r0, #0
bl sub_0201F988
add r4, r0, #0
Expand Down Expand Up @@ -4567,7 +4567,7 @@ _0225C3C4:
mov r0, #4
bl FontID_Release
ldr r0, [sp, #4]
bl sub_02007234
bl DestroySysTaskAndEnvironment
ldr r0, [sp]
mov r1, #6
bl FreeBgTilemapBuffer
Expand Down
Loading

0 comments on commit a891862

Please sign in to comment.