ReC98/th02
nmlgc e6294c2c1a [Reverse-engineering] [th02/th04/th05] Score update and display
The TH02 version is a piece of cake…

… but TH04 starts turning it into this un-decompilable piece of
unnecessarily micro-optimized ZUN code. Couldn't have chosen anything
better for the first separate ASM translation unit.

Aside from now having to convert names of exported *variables* to
uppercase for visibility in ASM translation units, the most notable
lesson in this was the one about avoiding fixup overflows. From the
Borland C++ Version 4.0 User's Guide:

	"In an assembly language program, a fixup overflow frequently
	 occurs if you have declared an external variable within a
	 segment definition, but this variable actually exists in a
	 different segment."

Can't be restated often enough.

Completes P0032, funded by zorg.
2019-09-21 14:01:47 +02:00
..
formats [C decompilation] [th02] Code segment #2 of all three executables 2015-03-14 23:25:50 +01:00
gaiji [Reverse-engineering] [th02/th04/th05] Score update and display 2019-09-21 14:01:47 +02:00
hardware [Reverse-engineering] [th02/th03/th04/th05] Back/front page pairs 2018-12-30 00:16:18 +01:00
hud [Reverse-engineering] [th02/th04/th05] Score update and display 2019-09-21 14:01:47 +02:00
math [Maintenance] Export all pascal functions with their proper uppercase names 2019-09-15 20:29:47 +02:00
music [Reduction] Bouncing Music Room polygons 2017-01-09 21:10:33 +01:00
snd [C decompilation] Finish TH02's OP.EXE 2015-03-16 22:36:50 +01:00
sprites [Reverse-engineering] [th04/th05] Spark animation 2019-02-28 17:43:15 +01:00
strings [C decompilation] Finish TH02's OP.EXE 2015-03-16 22:36:50 +01:00
boss_funcs[bss].asm [Reverse-engineering] [th02/th04/th05] Boss-related function pointers 2018-12-18 19:52:41 +01:00
exit.c [C decompilation] [th02] Code segment #2 of all three executables 2015-03-14 23:25:50 +01:00
exit_dos.c [C decompilation] [th02] Code segment #2 of all three executables 2015-03-14 23:25:50 +01:00
initmain.c [C decompilation] [th02] Code segment #2 of all three executables 2015-03-14 23:25:50 +01:00
main02_1.c [C decompilation] [th02] Code segment #2 of all three executables 2015-03-14 23:25:50 +01:00
main02_2.c [C decompilation] Finish TH02's OP.EXE 2015-03-16 22:36:50 +01:00
maine021.c [C decompilation] [th02] Code segment #2 of all three executables 2015-03-14 23:25:50 +01:00
maine022.c [Maintenance] Rename snd_kaja_func() to snd_kaja_interrupt() 2015-03-15 23:51:11 +01:00
maine_03.c [C decompilation] Finish TH02's OP.EXE 2015-03-16 22:36:50 +01:00
maine_04.c [Maintenance] [th02] Split off HUUHI.DAT pre-save encoding into a separate file 2015-09-09 17:08:42 +02:00
maine_05.c Centrally include master.h in ReC98.h 2015-03-03 06:47:23 +01:00
op_01.c [Maintenance] [th02] Move the menu options in huuma_cfg_t to their own structure 2015-09-08 17:19:32 +02:00
op_02_1.c [C decompilation] [th02] Code segment #2 of all three executables 2015-03-14 23:25:50 +01:00
op_02_2.c [Maintenance] Rename snd_kaja_func() to snd_kaja_interrupt() 2015-03-15 23:51:11 +01:00
op_03.c Centrally include master.h in ReC98.h 2015-03-03 06:47:23 +01:00
op_04.c [Maintenance] Fix any whitespace issues in our own code 2015-09-07 15:44:48 +02:00
op_05.c [C decompilation] [th02] Code segment #2 of all three executables 2015-03-14 23:25:50 +01:00
op_06.c [Maintenance] Fix any whitespace issues in our own code 2015-09-07 15:44:48 +02:00
playchar_speed[bss].asm [Reverse-engineering] [th02/th05] Player movement speed 2018-12-26 22:07:34 +01:00
power_overflow[data].asm [Reverse-engineering] [th02/th04/th05] Power overflow bonus 2018-09-02 20:48:31 +02:00
score.c [C decompilation] [th02/op] High score screen 2015-03-03 04:25:19 +01:00
score.inc [Maintenance] Move a few more ASM definitions to their own .inc files 2019-09-21 13:05:54 +02:00
scoreenc.c [Maintenance] [th02] Split off HUUHI.DAT pre-save encoding into a separate file 2015-09-09 17:08:42 +02:00
scorelod.c [C decompilation] [th02/op] High score screen 2015-03-03 04:25:19 +01:00
spark_render.asm [Reverse-engineering] [th02/th04/th05] Hardcoded spark sprites 2019-02-28 17:43:15 +01:00
th02.h [C decompilation] [th02] ZUN_RES.COM 2015-09-17 03:43:28 +02:00
th02.inc [Reverse-engineering] [th02/th04/th05] Score update and display 2019-09-21 14:01:47 +02:00
tiles[bss].asm [Reverse-engineering] [th02/th04/th05] Stage background tile ring buffer 2018-12-29 17:03:24 +01:00
zun_res1.c [C decompilation] [th02] ZUN_RES.COM 2015-09-17 03:43:28 +02:00
zun_res2.c [C decompilation] [th02] ZUN_RES.COM 2015-09-17 03:43:28 +02:00
zunerror.c [C decompilation] [th02] Code segment #2 of all three executables 2015-03-14 23:25:50 +01:00