Skip to content

Commit

Permalink
[Maintenance] [th04/th05] Split segment #1 before the playfield shake…
Browse files Browse the repository at this point in the history
… function

We have finally run out of letters to remove from the first segment
name in TH05! 🎉 But we surely won't have to decompile any other
function from the middle of any of these 7 segments soon, right?
Right…?

Part of P0185, funded by [Anonymous], -Tom-, and Blue Bolt.
  • Loading branch information
nmlgc committed Mar 5, 2022
1 parent a907fea commit 6bf40d7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
10 changes: 6 additions & 4 deletions th04_main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ include th04/main/enemy/enemy.inc
extern _tolower:proc
extern __ctype:byte

main_01 group SLOWDOWN_TEXT, mai_TEXT, EMS_TEXT, main_TEXT, DIALOG_TEXT, main__TEXT, PLAYER_P_TEXT, main_0_TEXT, main_01_TEXT, main_012_TEXT, CFG_LRES_TEXT, main_013_TEXT
main_01 group SLOWDOWN_TEXT, ma_TEXT, EMS_TEXT, mai_TEXT, main_TEXT, DIALOG_TEXT, main__TEXT, PLAYER_P_TEXT, main_0_TEXT, main_01_TEXT, main_012_TEXT, CFG_LRES_TEXT, main_013_TEXT
g_SHARED group SHARED, SHARED_
main_03 group GATHER_TEXT, SCROLLY3_TEXT, MOTION_3_TEXT, main_032_TEXT, IT_SPL_U_TEXT, main_033_TEXT, BULLET_U_TEXT, BULLET_A_TEXT, main_034_TEXT

Expand Down Expand Up @@ -270,7 +270,7 @@ SLOWDOWN_TEXT segment word public 'CODE' use16
SLOWDOWN_TEXT ends

; Segment type: Pure code
mai_TEXT segment word public 'CODE' use16
ma_TEXT segment word public 'CODE' use16
assume cs:main_01
;org 1
assume es:nothing, ss:nothing, ds:_DATA, fs:nothing, gs:nothing
Expand Down Expand Up @@ -1049,15 +1049,15 @@ DemoPlay proc near
pop bp
retn
DemoPlay endp
mai_TEXT ends
ma_TEXT ends

EMS_TEXT segment byte public 'CODE' use16
@ems_allocate_and_preload_eyecatc$qv procdesc near
@bomb_bg_load__ems_preload_playch$qv procdesc near
@eyecatch_animate$qv procdesc near
EMS_TEXT ends

main_TEXT segment word public 'CODE' use16
mai_TEXT segment word public 'CODE' use16

; =============== S U B R O U T I N E =======================================

Expand Down Expand Up @@ -2237,7 +2237,9 @@ loc_CE04:
pop bp
retn
sub_CD36 endp
mai_TEXT ends

main_TEXT segment byte public 'CODE' use16

; =============== S U B R O U T I N E =======================================

Expand Down
2 changes: 1 addition & 1 deletion th05/main010.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* 1st part of code segment #1 of TH05's MAIN.EXE
*/

#pragma option -zCmai_TEXT -zPmain_01
#pragma option -zCma_TEXT -zPmain_01

extern "C" {
#include "th05/main/player/bombanim.cpp"
Expand Down
2 changes: 1 addition & 1 deletion th05/main011.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* 1st part of code segment #1 of TH05's MAIN.EXE
*/

#pragma option -zCmain_TEXT -zPmain_01
#pragma option -zCmai_TEXT -zPmain_01

extern "C" {
#include "th05/main/boss/render.cpp"
Expand Down
22 changes: 12 additions & 10 deletions th05_main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ include th05/main/enemy/enemy.inc
extern _execl:proc
extern _strlen:proc

main_01 group SLOWDOWN_TEXT, ma_TEXT, EMS_TEXT, mai_TEXT, CFG_LRES_TEXT, main_TEXT, main__TEXT, main_0_TEXT, DIALOG_TEXT, PLAYER_P_TEXT, main_01_TEXT
main_01 group SLOWDOWN_TEXT, m_TEXT, EMS_TEXT, ma_TEXT, CFG_LRES_TEXT, mai_TEXT, main_TEXT, main__TEXT, main_0_TEXT, DIALOG_TEXT, PLAYER_P_TEXT, main_01_TEXT
g_SHARED group SHARED, SHARED_
main_03 group SCROLLY3_TEXT, MOTION_3_TEXT, main_031_TEXT, BULLET_A_TEXT, main_032_TEXT, main_033_TEXT, LASER_SC_TEXT, CURVEB_U_TEXT, IT_SPL_U_TEXT, BULLET_U_TEXT, main_034_TEXT, main_035_TEXT, main_036_TEXT

Expand Down Expand Up @@ -316,7 +316,7 @@ SLOWDOWN_TEXT segment word public 'CODE' use16
SLOWDOWN_TEXT ends

; Segment type: Pure code
ma_TEXT segment word public 'CODE' use16
m_TEXT segment word public 'CODE' use16
assume cs:main_01
;org 0Dh
assume es:nothing, ss:nothing, ds:_DATA, fs:nothing, gs:nothing
Expand Down Expand Up @@ -1213,7 +1213,7 @@ locret_B825:
leave
retn
DemoPlay endp
ma_TEXT ends
m_TEXT ends

EMS_TEXT segment byte public 'CODE' use16
@ems_allocate_and_preload_eyecatc$qv procdesc near
Expand All @@ -1227,7 +1227,7 @@ CFG_LRES_TEXT segment byte public 'CODE' use16
_cfg_load_resident_ptr procdesc near
CFG_LRES_TEXT ends

mai_TEXT segment word public 'CODE' use16
ma_TEXT segment word public 'CODE' use16

; =============== S U B R O U T I N E =======================================

Expand Down Expand Up @@ -1755,9 +1755,9 @@ loc_C565:
pop bp
retn
sub_C52D endp
mai_TEXT ends
ma_TEXT ends

main_TEXT segment byte public 'CODE' use16
mai_TEXT segment byte public 'CODE' use16
REIMU_STARS_UPDATE_AND_RENDER procdesc pascal near

; =============== S U B R O U T I N E =======================================
Expand Down Expand Up @@ -3167,9 +3167,9 @@ yumeko_bg_render endp

SHINKI_BG_RENDER procdesc pascal near
EXALICE_BG_RENDER procdesc pascal near
main_TEXT ends
mai_TEXT ends

main__TEXT segment word public 'CODE' use16
main_TEXT segment word public 'CODE' use16

; =============== S U B R O U T I N E =======================================

Expand Down Expand Up @@ -4313,15 +4313,15 @@ loc_F333:
pop bp
retf
sub_F2B4 endp
main__TEXT ends
main_TEXT ends

DIALOG_TEXT segment byte public 'CODE' use16
@DIALOG_FACE_LOAD_UNPUT_PUT_FREE_$QIII procdesc pascal near \
left:word, top:word, cel:word
@dialog_exit$qv procdesc near
DIALOG_TEXT ends

main_0_TEXT segment byte public 'CODE' use16
main__TEXT segment byte public 'CODE' use16

; =============== S U B R O U T I N E =======================================

Expand Down Expand Up @@ -5278,7 +5278,9 @@ loc_10396:
pop bp
retn
sub_10287 endp
main__TEXT ends

main_0_TEXT segment byte public 'CODE' use16

; =============== S U B R O U T I N E =======================================

Expand Down

0 comments on commit 6bf40d7

Please sign in to comment.