[Maintenance] [th05] Assign proper names to decompiled OP.EXE segments

Having to comb through them and change their `#pragma option -zC` names
after adding a new one is pretty annoying, after all. This way, we also
get to move some of those 2020 decompilations out of the `th05/`
subdirectory, matching the more consistent directory hierarchy that
this project has converged on in the years since.

Part of P0261, funded by [Anonymous] and Yanga.
This commit is contained in:
nmlgc 2023-10-28 21:43:11 +02:00
parent a874bd5408
commit 412df0c961
7 changed files with 19 additions and 22 deletions

View File

@ -170,7 +170,7 @@ bin\th05\res_kso.com: th05\res_kso.cpp
$**
| masters.lib
bin\th05\op.exe: th05\op010.cpp bin\th05\op.obj th05\op011.cpp th05\m_char.cpp bin\th04\cdg_p_na.obj bin\th04\snd_se_r.obj bin\th04\snd_se.obj bin\th04\bgimage.obj bin\th05\cdg_put.obj bin\th04\exit.obj bin\th05\vector.obj bin\th05\musicp_c.obj bin\th05\musicp_a.obj bin\th05\bgimager.obj bin\th05\snd_load.obj bin\th05\snd_kaja.obj bin\th05\pi_cpp_1.obj bin\th05\pi_asm_1.obj bin\th05\pi_cpp_2.obj bin\th05\pi_asm_2.obj bin\th05\initop.obj bin\th05\input_s.obj bin\th05\inp_h_w.obj bin\th05\snd_dlym.obj th05\cdg_p_nc.cpp bin\th05\frmdelay.obj bin\th04\cdg_load.obj bin\th05\egcrect.obj bin\th03\hfliplut.obj bin\th04\snd_pmdr.obj bin\th04\snd_mmdr.obj bin\th04\snd_mode.obj bin\th02\exit_dos.obj
bin\th05\op.exe: th05\op_start.cpp bin\th05\op.obj th05\hi_view.cpp th05\m_char.cpp bin\th04\cdg_p_na.obj bin\th04\snd_se_r.obj bin\th04\snd_se.obj bin\th04\bgimage.obj bin\th05\cdg_put.obj bin\th04\exit.obj bin\th05\vector.obj bin\th05\musicp_c.obj bin\th05\musicp_a.obj bin\th05\bgimager.obj bin\th05\snd_load.obj bin\th05\snd_kaja.obj bin\th05\pi_cpp_1.obj bin\th05\pi_asm_1.obj bin\th05\pi_cpp_2.obj bin\th05\pi_asm_2.obj bin\th05\initop.obj bin\th05\input_s.obj bin\th05\inp_h_w.obj bin\th05\snd_dlym.obj th05\cdg_p_nc.cpp bin\th05\frmdelay.obj bin\th04\cdg_load.obj bin\th05\egcrect.obj bin\th03\hfliplut.obj bin\th04\snd_pmdr.obj bin\th04\snd_mmdr.obj bin\th04\snd_mode.obj bin\th02\exit_dos.obj
$(CC) $(CFLAGS) $(LARGE_LFLAGS) -DGAME=5 -DBINARY='O' -3 -Z -nbin\th05\ -eOP.EXE @&&|
$**
|

1
th05/hi_view.cpp Normal file
View File

@ -0,0 +1 @@
#include "th05/hiscore/view.cpp"

View File

@ -1,10 +1,3 @@
/* ReC98
* -----
* 2nd part of code segment #1 of TH05's OP.EXE
*/
#pragma option -zCop_01_TEXT
extern "C" {
#include "platform.h"
#include "master.hpp"

View File

@ -3,7 +3,7 @@
* TH05 player character selection menu
*/
#pragma option -zCop_01_TEXT
#pragma option -zPop_01
#include "platform.h"
#include "x86real.h"

View File

@ -1,9 +1,4 @@
/* ReC98
* -----
* 1st part of code segment #1 of TH05's OP.EXE
*/
#pragma option -zCop_01_TEXT
#pragma option -zPop_01
#include <process.h>
#include "platform.h"

1
th05/op_start.cpp Normal file
View File

@ -0,0 +1 @@
#include "th05/op/start.cpp"

View File

@ -28,6 +28,7 @@ include th05/op/piano.inc
extern _getch:proc
extern _strlen:proc
op_01 group OP_START_TEXT, op_01_TEXT, HI_VIEW_TEXT, M_CHAR_TEXT
g_SHARED group SHARED, SHARED_
; ===========================================================================
@ -146,16 +147,17 @@ _TEXT ends
; ===========================================================================
OP_START_TEXT segment byte public 'CODE' use16
_start_game procdesc near
_start_extra procdesc near
_start_demo procdesc near
OP_START_TEXT ends
; Segment type: Pure code
op_01_TEXT segment byte public 'CODE' use16
assume cs:op_01_TEXT
; org 0Ch
assume cs:op_01
assume es:nothing, ss:nothing, ds:_DATA, fs:nothing, gs:nothing
_start_game procdesc near
_start_extra procdesc near
_start_demo procdesc near
; =============== S U B R O U T I N E =======================================
; Attributes: bp-based frame
@ -2505,9 +2507,14 @@ loc_CD64:
pop bp
retn
_regist_view_menu endp
op_01_TEXT ends
HI_VIEW_TEXT segment byte public 'CODE' use16
_cleardata_and_regist_view_sprite procdesc near
op_01_TEXT ends
HI_VIEW_TEXT ends
M_CHAR_TEXT segment byte public 'CODE' use16
M_CHAR_TEXT ends
; ===========================================================================