mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-28 21:31:17 -05:00
882d2edf64e7b633623eb1da167641dd16c6622d
Decompile from asm: DseTrackEvent_TuningDeltaCoarse 0x02071EB4 DseTrackEvent_TuningDeltaFine 0x02071F3C DseTrackEvent_TuningDeltaFull 0x02071FC4 All three are DseTrackEvent_SetTuning with the new tuning derived from the old one instead of replacing it, and they share its tail verbatim: recompute bend_final from the tuning, the channel's bend fade and the synth's bend, then mask interrupts and set update_flags bit 0x10 on every voice in the channel. They differ only in how the delta is scaled. Coarse shifts the signed byte left 8, Fine shifts it left 2, and Full takes a little-endian pair of bytes and adds it whole. Coarse and Fine need the delta written before the existing tuning -- (delta << n) + channel->tuning, not channel->tuning + (delta << n). The target loads the stream byte first and folds the shift into the add's second operand; the other order reverses both the loads and the add, at score 215. Full is unaffected because its byte pair is assembled before the add either way. No comments are added to any pmd-sky file. Authored by Claude (Opus 5) under human direction. Confirmed by a matching build: build/pmdsky.us/pmdsky.us.nds: OK. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…
…
…
…
…
…
Pokémon Mystery Dungeon: Explorers of Sky
This is a WIP disassembly of Pokémon Mystery Dungeon: Explorers of Sky. For instructions on how to set up the repository, please read INSTALL.md. For information on how to contribute changes, see CONTRIBUTING.md.
This repository builds the following ROMs:
- pmdsky.us.nds
sha1: 5fa96ca8d8dd6405d6cd2bad73ed68bc73a9d152 - pmdsky.eu.nds
sha1: c838a5adf1ed32d2da8454976e5b1a1aa189c139 - pmdsky.jp.nds
sha1: 7785138dd343b6f2d0f2c9cadc26b4aa927161d7
For contacts and other pret projects, see pret.github.io.
Description
Languages
Assembly
66.3%
C
18%
C++
7.1%
Boogie
4.3%
sed
1.5%
Other
2.8%