Repository navigation
ProjectRedDoor 0.3.0
ProjectRedDoor 0.3.0 — root-cause CCR fix for 0x0BF4B6, 0x0BD516 and 9 helpers
Fixed at the source in Taitof3Decomp: 0x0BF4B6 (object gate) and 0x0BD516 (map probe) no longer need to be
pinned dirty in the native profile. Both routines — along with 9 other flag-returning helpers in the shipped profile
(0x0C20D6, 0x0C216E, 0x0C2904, 0x0C2922, 0x0C29AE, 0x0C29C0, 0x0C2A0C, 0x0C5572, 0x14EE18) — are
called by ROM code that branches directly on the 68020 CCR flags (bne/beq/bmi) immediately after bsr/jsr
without a tst/cmp. The C translations left r->sr untouched, so callers branched on stale flags:
0x0BF4B6: caller0x0BE492saw staleZ=0aftermoveq #0, d0, rejecting the player object on stage entry.0x0BD516: caller0x0BD546(movem.w (a7)+,d0-d1 ; bne $bd59c) saw stale CCR afterext.w/moveq #0, causing
misrouted map probes and the exception-storm reboot.Ea_0BD516also now storesr->d[1]on the out-of-bounds
zeroexit.
Verifier and profile updates:
verify_finish()insrc/machine/f3_native.cnow checks all 16 general registers (D0-D7,A0-A7) by default
(previously skipped whencheck_maskwas zero) and supportsRD_VERIFY_SR=1to verify CCR flags (N/Z/V/C).- All 11 fixed routines verified bit-exact across 41,872 calls in a 9200-frame Stage 1 playthrough with 0 mismatches.
0x0BD516and0x0BF4B6are re-enabled ascleaninsrc/native/native_profile.tsv.
ProjectRedDoor 0.2.1 — no more reboot during play
Fixed: the board rebooted about 1600 frames into the first stage. The map probe 0x0BD516 ran as recompiled code
and, on one particular position, returned a continuation that sent the CPU to 0x00070010 — a data address inside
the program ROM. From there every instruction raised an exception, the address-error handler at 0x000400 pushed
another frame, and the stack walked down over 0x401EF0-0x401F06, where the game keeps its mode and event flags.
The result was the reboot to the attract sequence.