ReC98/th04
nmlgc c85f444b07 [Decompilation] [th02/th03] Sound effect playback
Second previously undecompilable translation unit, second creative
workaround for the workaround. We can't compile snd_se_play() with -WX,
as that function needs a stack frame, and it's also illegal to disable
-WX in the middle of a translation unit. But since we only need word
alignment in front of snd_se_reset() *and* that function is identical
in all 4 games, it makes sense to move it to its own translation unit.

And then you notice that the TH02/TH03 and TH04/TH05 versions of the
other two functions are basically identical. The small differences can
easily be moved out to inline functions, leaving us with a single
implementation file for all 4 games. Nice!

Part of P0137, funded by [Anonymous].
2021-04-03 22:11:45 +02:00
..
end [Maintenance] Make decomp.h exclusive to C++ 2021-03-20 02:17:08 +01:00
formats [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
gaiji [Position independence] [th04/th05] Remaining references to the name alphabet 2020-09-12 11:29:35 +02:00
hardware [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
hiscore [Position independence] [th04/th05] Remaining references to the name alphabet 2020-09-12 11:29:35 +02:00
main [Maintenance] Reimplement TASM's ARG directive for `MOV BX, SP` functions 2021-02-20 23:50:00 +01:00
math [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
music
op [Decompilation] [th04] Player character and shot type selection menu 2020-11-02 22:41:51 +01:00
snd [Decompilation] [th02/th03] Sound effect playback 2021-04-03 22:11:45 +02:00
sprites [Decompilation] [th04] Player character and shot type selection menu 2020-11-02 22:41:51 +01:00
strings [Decompilation] [th04] Player character and shot type selection menu 2020-11-02 22:41:51 +01:00
bgimage.cpp [Decompilation] [th04/th05] bgimage_snap(), bgimage_put(), bgimage_free() 2021-03-20 02:36:36 +01:00
bgimager.asm [Separate translation units] [th04/th05] bgimage_put_rect() (undecompilable) 2021-03-19 23:19:48 +01:00
cdg_load.asm [Separate translation units] [th04/th05] .CDG: Loading and freeing 2020-11-16 20:01:35 +01:00
cdg_p_na.cpp [Decompilation] [th04/th05] cdg_put_noalpha_8() 2021-03-20 02:36:40 +01:00
cdg_p_pr.asm [Separate translation units] [th04] cdg_put_plane_roll_8() (undecompilable) 2021-03-20 02:36:39 +01:00
chars.h [Decompilation] [th04] Player character and shot type selection menu 2020-11-02 22:41:51 +01:00
chars.inc [Maintenance] Move all features exclusive to MAIN.EXE to a main/ subdirectory 2020-04-15 20:58:01 +02:00
common.h [Maintenance] [th03/th04/th05] Start a new "essential macros" file 2020-02-23 16:56:15 +01:00
egcrect.cpp [Decompilation] [th04/th05] EGC-powered page 1→0 rectangle blitting 2020-11-16 20:01:09 +01:00
exit.c [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
frmdely2.c [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
initmain.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
initop.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
input_s.asm [Translation unit catch-up] [th04] Low-level input 2021-03-20 02:36:38 +01:00
m_char.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
main011.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
main032.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
maine011.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
mem.h [Separate translation units] [th02/th03/th05] game_init_main() 2021-01-30 19:50:32 +01:00
mem.inc [Naming] [th04/th05] EMS area setup 2019-11-24 16:02:43 +01:00
mem[bss].asm [Reverse-engineering] [th02/th03/th04/th05] DOS memory assignment sizes 2019-11-24 14:04:34 +01:00
res_huma.cpp [Maintenance] Use the C++ resdata_*() wrappers in all ZUN.COM sub-binaries 2021-02-20 15:46:48 +01:00
resident.hpp [Maintenance] Use the C++ resdata_*() wrappers in all ZUN.COM sub-binaries 2021-02-20 15:46:48 +01:00
score.h [Maintenance] [th04/th05] Declare a little-endian BCD score type 2020-01-03 21:33:30 +01:00
score[data].asm [Maintenance] [th04/th05] Assemble 16-bit .ASM files case-sensitively 2020-05-03 23:56:08 +02:00
scoreupd.asm [Maintenance] Rename all old *_X and *_Y constants to *_LEFT and *_TOP 2020-08-28 15:14:22 +02:00
scoreupd[data].asm [Maintenance] [th04/th05] Assemble 16-bit .ASM files case-sensitively 2020-05-03 23:56:08 +02:00
setup.asm [Maintenance] Rename all old *_X and *_Y constants to *_LEFT and *_TOP 2020-08-28 15:14:22 +02:00
setup.cpp [Maintenance] Declare distinct types for screen, VRAM, and TRAM coordinates 2020-08-28 14:53:30 +02:00
setup[bss].asm [Maintenance] [th04/th05] Unused setup and Music Room data 2019-12-29 21:15:43 +01:00
setup[data].asm [Reverse-engineering] [th04/th05] BGM/SE mode setup strings 2019-12-22 15:37:45 +01:00
shared.hpp [Decompilation] [th05] Bosses: Smooth random movement 2020-08-16 21:41:34 +02:00
shared.inc [Maintenance] Reimplement TASM's ARG directive for `MOV BX, SP` functions 2021-02-20 23:50:00 +01:00
snd_dlym.cpp [Decompilation] [th03/th04] snd_delay_until_measure() 2021-01-05 21:56:57 +01:00
snd_se.cpp [Decompilation] [th02/th03] Sound effect playback 2021-04-03 22:11:45 +02:00
snd_se_r.cpp [Decompilation] [th02/th03] Sound effect playback 2021-04-03 22:11:45 +02:00
th04.hpp [Reverse-engineering] [th04/th05] Resident structure 2020-01-03 21:43:43 +01:00
th04.inc [Maintenance] Move all features exclusive to MAIN.EXE to a main/ subdirectory 2020-04-15 20:58:01 +02:00
vector.cpp [Decompilation] [th04/th05] vector1_at(), vector2_at() 2021-03-19 23:29:26 +01:00
zunsoft.asm [Decompilation] [th04/th05] bgimage_snap(), bgimage_put(), bgimage_free() 2021-03-20 02:36:36 +01:00
zunsoft.h [Maintenance] Templatize RGB and palette types for 4- and 8-bit components 2020-01-05 19:06:32 +01:00
zunsoft[bss].asm [Position independence] [th02/th03/th04/th05] Color palettes 2019-11-28 23:23:29 +01:00
zunsoft[data].asm [Reverse-engineering] [th04/th05] ZUN Soft logo 2019-12-17 23:26:57 +01:00