Commit Graph

192 Commits

Author SHA1 Message Date
nmlgc 4dc9b9ab4a [JWasm move] Don't use the DIST/CALLMODEL constants for procedures and labels
Once you've actually found the right syntax that makes the assembler just use
the default call type of the current memory model for both procedures (where
it's just "PROC" without anything else) and labels (where it's "LABEL PROC"),
these constants become completely unneccessary, even with TASM.
2014-11-05 18:20:02 +01:00
nmlgc 340c8a792a General cleanup
Mostly moving spurious null bytes, which are actually supposed to denote
alignment, into their associated slices, but also prettying up some of the
very first slices.
2014-10-20 17:20:04 +02:00
nmlgc 274b37eed7 [Reduction] #504: master.lib version string
Fulfilling the original licensing conditions... I think.
2014-09-16 04:11:09 +02:00
nmlgc 86b86a96b8 [Reduction] #503: graph_gaiji_puts 2014-09-15 03:03:52 +02:00
nmlgc a4a5bc9df9 [Reduction] #502: graph_gaiji_putc
Introducing MASTERMOD v3. How long until a GAME_NUMBER macro? (Answer: Once we
find ZUN code that slightly changed between games.)
2014-09-14 17:39:30 +02:00
nmlgc 3e7fa3a3d1 [Reduction] #500: over_put_8 2014-09-09 05:54:40 +02:00
nmlgc 2ba86d6887 [Reduction] #499: super_roll_put_tiny 2014-09-09 05:34:40 +02:00
nmlgc 80fc5c6d82 [Reduction] #496: mem_unassign
Which challenges a lot about what we thought to know about Amusement Makers'
modifications to master.lib, due to the fact that TH02 contains the modified
version of this function, but the original of draw_trapezoid...

And I haven't even begun to research how this removal of conditional branches
could have a positive effect on the game, especially since it's only called
before exiting anyway.
2014-09-08 20:47:09 +02:00
nmlgc 9ed6e1e93f [Reduction] #488-491: General key input support 2014-09-07 17:01:58 +02:00
nmlgc 3d05fb85c9 [Reduction] #486-487: key_wait_bios and key_sense_bios 2014-09-07 16:21:01 +02:00
nmlgc 0d213f41b5 [Reduction] #484-485: resdata_exist and resdata_create
Looks like the 'pal98 grb' string was merely copy-pasted from the respal
module and isn't actually used by the function, which means that we don't have
to work around a naming collision after all.
2014-09-07 15:47:50 +02:00
nmlgc 61a0a024e2 [Reduction] #483: dos_free
OK. I'm going to spend one day on TH01 alone, and if that doesn't end up
shredding the code significantly, I'm not going to cover that game.
2014-09-07 15:41:48 +02:00
nmlgc 23a3a4116a [Reduction] #479-482: pfgetc 2014-09-07 15:07:36 +02:00
nmlgc 0acdb448d1 [Reduction] #478: grcg_polygon_cx 2014-09-07 02:39:52 +02:00
nmlgc 9bb41bd72b [Reduction] #477: draw_trapezoidx 2014-09-07 02:29:58 +02:00
nmlgc 4f2e3e4944 [Reduction] #476: super_put_1plane 2014-09-07 02:18:27 +02:00
nmlgc 9e405575ea [Reduction] #474-475: super_wave_put 2014-09-07 01:56:57 +02:00
nmlgc fe2a73c888 [Reduction] #468-469: ihypot and isqrt 2014-09-05 20:17:22 +02:00
nmlgc bf7fb83197 [Reduction] #454: respal_set_palettes 2014-09-03 16:08:44 +02:00
nmlgc b60d3a0f56 [Reduction] #453: respal_get_palettes 2014-09-03 16:07:27 +02:00
nmlgc 3f7a29acc6 [Reduction] #452: respal_free 2014-09-03 15:45:21 +02:00
nmlgc 61c95ec603 [Reduction] #450-451: respal_exist and respal_create 2014-09-03 15:23:51 +02:00
nmlgc b82a03c3f8 [Reduction] #441: grcg_round_boxfill
No local symbol definitions for variables here, as they are used in both the
normal function and the retfunc.
2014-09-01 21:08:57 +02:00
nmlgc b4dd0d452d [Reduction] #428: text_puts 2014-09-01 08:58:15 +02:00
nmlgc ce245eae9f [Reduction] #427: grcg_trapezoid 2014-09-01 08:45:00 +02:00
nmlgc c90b76bff9 [Reduction] #426: graph_200line
Yup. TH03's graphics layer is actually set to a resolution of 640x200 and
upscaled by the hardware, which gives the game its distinctive low-res look.
2014-09-01 08:41:20 +02:00
nmlgc 1276b727ff [Reduction] #425: grcg_settile_1line 2014-09-01 07:39:11 +02:00
nmlgc a27c177235 [Reduction] #424: grcg_triangle 2014-09-01 07:30:58 +02:00
nmlgc 5b91dd3b42 [Reduction] #423: grcg_polygon_c 2014-09-01 06:52:28 +02:00
nmlgc b2c9ba67bc [Reduction] #422: draw_trapezoid
Yup. From TH03 on, ZUN uses a different version of master.lib, containing more
features than the last official version 0.23 from May 1995. Given the relative
insignificance of the features in question, I presume that Amusement Makers
must have kept their own, improved fork of master.lib, rather than ZUN having
hacked master.lib on his own.

Anyway, that doesn't matter. In the end, we still have to reverse-engineer each
and every one of these changes, and some of the more complicated functions
won't even be reduced before the actual reverse-engineering step of this
project.

[Binary change] Order of 3 relocations in TH05's OP.EXE.
2014-08-31 18:08:50 +02:00
nmlgc 7dc06e0047 [Reduction] #421: super_zoom 2014-08-31 15:27:30 +02:00
nmlgc 5009e416a0 [Reduction] #420: grcg_fill 2014-08-31 12:22:19 +02:00
nmlgc 14b9f10d14 [Reduction] #419: super_convert_tiny 2014-08-31 11:42:22 +02:00
nmlgc 2db5e73934 [Reduction] #418: grcg_line 2014-08-31 11:30:26 +02:00
nmlgc 3549c5496e [Reduction] #417: ems_read 2014-08-31 11:15:56 +02:00
nmlgc 44a2c223f6 [Reduction] #416: ems_space 2014-08-31 11:05:56 +02:00
nmlgc 5261b79d12 [Reduction] #415: ems_write 2014-08-31 11:02:40 +02:00
nmlgc 2c16f56bb1 [Reduction] #414: ems_setname 2014-08-31 10:58:51 +02:00
nmlgc 3660316127 [Reduction] #413: ems_movememoryregion 2014-08-31 10:56:55 +02:00
nmlgc 958f32c884 [Reduction] #412: ems_free 2014-08-31 10:49:03 +02:00
nmlgc d4f0bb7c27 [Reduction] #411: ems_exist 2014-08-31 10:43:56 +02:00
nmlgc 267749bd40 [Reduction] #410: ems_enablepageframe 2014-08-31 10:37:04 +02:00
nmlgc 4b848cc7e8 [Reduction] #409: ems_allocate 2014-08-31 10:32:28 +02:00
nmlgc e9e6d14ab6 [Reduction] #408: gaiji_backup and gaiji_restore 2014-08-31 10:23:41 +02:00
nmlgc bd2ef210c0 [Reduction] #407: gaiji_entry_bfnt 2014-08-31 10:09:59 +02:00
nmlgc 73aad4c7e6 [Reduction] #404-406: gaiji_write and gaiji_write_all 2014-08-31 09:50:38 +02:00
nmlgc 8c68537820 [Reduction] #401-403: gaiji_read and gaiji_read_all 2014-08-31 09:42:55 +02:00
nmlgc c793095729 [Reduction] #400: grc_clip_polygon_n 2014-08-31 08:55:51 +02:00
nmlgc 1546628658 [Reduction] #399: grc_setclip 2014-08-31 08:36:33 +02:00
nmlgc 2ed0225877 [Reduction] #396-398: grcg_circle 2014-08-31 08:01:45 +02:00