1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-13 04:39:36 +00:00
oot/asm/non_matchings/code
Chris Teague bcf2694f93
Make func_800C213C match original ROM (#678)
* Make func_800C213C match original ROM

The C code for this function was very close to done, and was
functionally equivalent to the ROM.  This commit uses a few tricks
to convince the compiler to allocate the same registers as the original
ROM.  The two tricks used are:
1. Introduced a new temporary variable "yinc".
2. Added a "do while(0) {}" line in two places.

Both of these ideas came from the decomp-permuter tool.  I took the
do/while idea and guess as to what it might have been in the original
code.  I imagined that the "do while(0) {}" was probably left over from
a standard multi-line macro, which for some reason had an empty body.
I further suggest that maybe the empty body is because it was a feature
compiled out during RELEASE builds - perhaps a debug logging macro.

* Use simpler code for func_800C213C

Replaced dummy LOG macro with "do {} while(0);".  This version makes
less assumptions about what the original code looked like.
2021-02-12 17:26:42 -05:00
..
audio_seqplayer code_800F7260 (#433) 2020-10-26 07:58:56 -04:00
code_800BB0A0 Decompile z_camera data, and some camera WIP (#173) 2020-06-01 17:54:47 -04:00
code_800DACC0 audio_seqplayer, the easy half (#369) 2020-09-01 17:23:30 -04:00
code_800E11F0 code_800F7260 (#433) 2020-10-26 07:58:56 -04:00
code_800EC960 code_800F7260 (#433) 2020-10-26 07:58:56 -04:00
code_800F7260 code_800F7260 (#433) 2020-10-26 07:58:56 -04:00
code_800F9280 audio_seqplayer, the easy half (#369) 2020-09-01 17:23:30 -04:00
code_80110450 Decompile shrink_window.c (#232) 2020-07-08 21:54:39 -04:00
db_camera Consistent naming for Math_ functions (#542) 2020-12-26 05:44:53 -05:00
PreRender Make func_800C213C match original ROM (#678) 2021-02-12 17:26:42 -05:00
sys_math3d matched Math3D_CylVsLineSeg and fixed a Math_ error (#564) 2020-12-27 11:13:38 -05:00
sys_matrix Consistent naming for Math_ functions (#542) 2020-12-26 05:44:53 -05:00
ucode_disas Match/Improve a bunch of non matchings (#342) 2020-08-23 17:50:30 -04:00
z_actor Decompile Gameplay_Keep and fix all existing decompiled objects (#595) 2021-01-24 19:36:40 -05:00
z_camera additional matching functions in z_room, z_camera, and En_Zl3 (#541) 2020-12-18 22:09:38 -05:00
z_eff_blure Consistent naming for Math_ functions (#542) 2020-12-26 05:44:53 -05:00
z_jpeg Decompile jpegdecoder.c, padsetup.c and code_800C3C20.c (#217) 2020-06-21 18:43:14 -04:00
z_kaleido_setup Decompile pausemgr.c (#211) 2020-06-17 15:23:42 -04:00
z_kankyo Decompile Gameplay_Keep and fix all existing decompiled objects (#595) 2021-01-24 19:36:40 -05:00
z_message_PAL Decompile z_kanfont (#443) 2020-10-12 17:42:17 -04:00
z_onepointdemo Actor Struct Changes (and a few related things) (#617) 2021-01-18 16:04:04 -05:00
z_parameter Cleanup z_lifemeter (#552) 2021-01-10 16:33:58 -05:00
z_play Document Collision_Check (#468) 2021-01-17 21:13:36 -05:00
z_room additional matching functions in z_room, z_camera, and En_Zl3 (#541) 2020-12-18 22:09:38 -05:00
z_skin_awb z_skin OK and z_skin_awb decomped (one barely nonmatching) (#632) 2021-02-12 20:41:34 +01:00
z_sram Decompile z_sram.c (#431) 2020-10-11 13:45:08 -04:00
z_vimode First proper commit. 2020-03-17 00:31:30 -04:00
z_vr_box Split remaining unsplit asm files and migrate more rodata (#277) 2020-07-19 21:08:50 -04:00