Commit Graph

1408 Commits

Author SHA1 Message Date
AnonymousRandomPerson
6f672e82d6 Merge pull request #285 from CecilArmitais/decomp-UFixedPoint64CmpLt
Some checks failed
build / build (push) Has been cancelled
Decomp UFixedPoint64CmpLt
2026-08-05 21:10:34 -04:00
AnonymousRandomPerson
1399685a57 Merge branch 'main' into decomp-UFixedPoint64CmpLt 2026-08-05 20:29:13 -04:00
AnonymousRandomPerson
31af8f5c29 Merge pull request #288 from AnonymousRandomPerson/main
Some checks failed
build / build (push) Has been cancelled
Synced from pmdsky-debug
2026-08-01 18:53:45 -04:00
AnonymousRandomPerson
a9fead3f21 Merge branch 'main' into main 2026-08-01 12:47:54 -04:00
AnonymousRandomPerson
7cd066bd00 Synced from pmdsky-debug 2026-08-01 12:46:55 -04:00
AnonymousRandomPerson
e142cd9953 Merge pull request #287 from AnonymousRandomPerson/main
Some checks failed
build / build (push) Has been cancelled
Synced from pmdsky-debug
2026-07-31 18:16:24 -04:00
AnonymousRandomPerson
530a76f587 Synced from pmdsky-debug 2026-07-31 18:03:24 -04:00
AnonymousRandomPerson
b65f50cf1d Merge pull request #286 from AnonymousRandomPerson/main
Some checks failed
build / build (push) Has been cancelled
Add aliases to sync tool for SDK symbols incompatible with pmdsky-debug naming conventions
2026-07-26 00:29:39 -04:00
AnonymousRandomPerson
a3d62d1a5f Add aliases for SDK symbols incompatible with pmdsky-debug naming conventions 2026-07-25 22:32:01 -04:00
cecilarmitais
14c23438b4 Decomp UFixedPoint64CmpLt
Decompile UFixedPoint64CmpLt (0x02001A30) from asm. It compares two 64-bit
values held as high/low word pairs and returns whether the first is less than
the second.

asm/main_02001A30.s held only this function, so the file and its .inc are
removed rather than split, the function merges into the adjacent
src/main_020018D0.c, and main.lsf drops asm/main_02001A30.o.

Three details of the interface are read off the target rather than assumed,
each tested with the others held fixed. The four words arrive as separate
parameters: a 2-word struct passed by value makes the compiler push all four
argument registers and reload them, which the target does not do. Those
parameters are unsigned: the comparisons select movlo/movhi, where signed high
words give movlt/movgt. The return is word-sized: a u8-width return such as
bool8 appends and r0, r0, #0xff, which the target does not have. BOOL is used
rather than int because it is the tree's word-sized boolean, and it produces
the same bytes.

src/main_02001BB4.c declared this function from its call site, before it was
decompiled. That declaration is replaced by an include of the header. It was
never visible to the compiler at the same time as the definition, so the two
disagreeing prototypes could not be caught by a build; its parameter types were
signed, which does not describe this function.

No comments are added to any pmd-sky file.

Authored by Claude (Opus 4.8, amended by Opus 5) under human direction.
Confirmed by a matching build: build/pmdsky.us/pmdsky.us.nds: OK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 15:16:15 -07:00
AnonymousRandomPerson
bee717cd0f Merge pull request #284 from SethBarberee/more_nitro_july
Some checks are pending
build / build (push) Waiting to run
More nitro, itcm, and DSE work
2026-07-25 16:13:28 -04:00
AnonymousRandomPerson
8e05683d74 Merge branch 'main' into more_nitro_july 2026-07-25 16:03:18 -04:00
AnonymousRandomPerson
5d155e351a Merge pull request #283 from CecilArmitais/decomp-actor-globals
[CLAUDE] Decomp special-actor setters; identify SPECIAL_ACTORS (_020B0B08)
2026-07-25 15:44:16 -04:00
Seth Barberee
25a790db5e more dse decomp 2026-07-24 19:31:21 -07:00
CecilArmitais
435ad13a33 Added union comment to special_actors 2026-07-24 13:42:08 -07:00
CecilArmitais
6e975da39b Added comments to script_entity_id 2026-07-24 13:35:26 -07:00
Seth Barberee
14bdd0ab84 decomp few DSE funcs 2026-07-23 18:00:33 -07:00
Seth Barberee
f5f90cb7a1 Match LightningRodStormDrainCheck thanks to @taxicat1 and other funcs 2026-07-23 16:47:54 -07:00
cecilarmitais
c72c378044 Decomp special-actor setters; identify SPECIAL_ACTORS (_020B0B08)
Decompile eight ground-mode setters from asm into src/main_02065B3C.c:
SetActorTalkMainAndActorTalkSub, SetActorTalkMain, SetActorTalkSub,
SetActorEventMain, SetRandomRequestNpcs1And2, SetRandomRequestNpc03KindVar,
SetAllEventNpcs and SetNewFriendActor.

Identify the global they write, _020B0B08, as a 28-byte table of slots keyed by
the special members of enum script_entity_id (ENTITY_TALK_MAIN 46 through
ENTITY_NPC_DEMO_PARTNER 59). Every slot offset is corroborated by both a writer
above and the reader that resolves it at the matching entity id: sub_0206549C,
reached via GetScriptEntityMonsterId, and sub_02065050, reached via
GetActorMatchingStorageId. Name the type struct special_actors and relabel the
symbol _020B0B08 -> SPECIAL_ACTORS at its definition in
asm/main_rodata_020A2808.s and at every reference.

Extracting the block splits asm/main_0205EDA4.s: the trailing functions move
verbatim into asm/main_02065BD8.s, the affected .inc files are regenerated, and
main.lsf gains the two new objects.

Add enum script_entity_id to include/enums.h, taken from pmdsky-debug, since
struct special_actors refers to it.

No comments are added to any pmd-sky file; comments cannot be checked by the
matching build, so the code is left to stand on its own.

Authored by Claude (Opus 4.8) under human direction. Confirmed by a matching
build: build/pmdsky.us/pmdsky.us.nds: OK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-21 00:39:51 -07:00
AnonymousRandomPerson
ca0fb7116a Merge pull request #282 from CecilArmitais/decomp-IsSkyExclusiveDungeon
Some checks failed
build / build (push) Has been cancelled
IsSkyExclusiveDungeon (Claude Matched, Human Confirmed)
2026-07-20 17:53:07 -04:00
cecilarmitais
3a80e75ed3 Decomp IsSkyExclusiveDungeon
Authored by Claude (Opus 4.8) under human direction. Confirmed by a matching
build: build/pmdsky.us/pmdsky.us.nds: OK.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 16:27:08 -07:00
Seth Barberee
1259190e36 little itcm work 2026-07-18 09:27:28 -07:00
Seth Barberee
41fed841e0 move most of std_string to src 2026-07-16 07:36:58 -07:00
Seth Barberee
63fc9305bb remove unneeded files 2026-07-16 07:36:58 -07:00
Seth Barberee
4540eced4e Labeled/decomped MI_SwapWord 2026-07-16 07:36:58 -07:00
Seth Barberee
2561788669 move more gx files to src 2026-07-16 07:36:58 -07:00
Seth Barberee
8fc38e7ae7 move more files to src 2026-07-16 07:36:58 -07:00
Seth Barberee
8c59b45736 continue moving nitro code to c 2026-07-16 07:36:58 -07:00
AnonymousRandomPerson
014967fda3 Merge pull request #281 from AnonymousRandomPerson/main
Some checks failed
build / build (push) Has been cancelled
Synced from pmdsky-debug
2026-07-16 00:18:02 -04:00
AnonymousRandomPerson
5431619314 Synced from pmdsky-debug 2026-07-15 22:50:47 -04:00
AnonymousRandomPerson
a7873e861b Synced from pmdsky-debug 2026-07-15 22:12:22 -04:00
AnonymousRandomPerson
b1f1a46577 Merge pull request #280 from Zur3l/main
Some checks failed
build / build (push) Has been cancelled
Decomp 37 functions
2026-07-11 23:52:39 -04:00
Zur3l
00953d57af Decomp IsCastform and IsCherrim
Both decomped by @Chesyon and @taxicat1, thanks
2026-07-11 17:55:51 -04:00
Zur3l
4c368ab4e1 Add some decomp.me links 2026-07-11 17:18:26 -04:00
Zur3l
999df284ff Decomp BaseFormsEqual 2026-07-11 17:18:26 -04:00
Zur3l
c49eb69081 Decomp GetMoveCategory 2026-07-11 17:18:26 -04:00
Zur3l
9a03d2ac98 Decomp IsSameMove 2026-07-11 17:18:26 -04:00
Zur3l
356f786127 Decomp IsRealMoveInTimeDarkness, IsMovesetValidInTimeDarkness, and GetFirstNotRealMoveInTimeDarkness 2026-07-11 17:18:26 -04:00
Zur3l
5b17f3f97f Decomp IsMovesetValid
Thanks @taxicat1
2026-07-11 17:18:26 -04:00
Zur3l
fcca1fecac Decomp IsRealMove 2026-07-11 17:18:26 -04:00
Zur3l
5d30f28cd6 Decomp IsNot2TurnsMoveOrSketch 2026-07-11 17:18:26 -04:00
Zur3l
a5c869f004 Decomp IsOneHitKoMove 2026-07-11 17:18:26 -04:00
Zur3l
7bfd15116c Decomp IsTrappingMove 2026-07-11 17:18:26 -04:00
Zur3l
e8ce1c84e1 Decomp IsCopyingMove 2026-07-11 17:18:26 -04:00
Zur3l
7245b85a8c Decomp IsHealingWishOrLunarDance 2026-07-11 17:18:26 -04:00
Zur3l
7bd5b913cd Decomp IsPunchMove
Decomped by @SethBarberee and @taxicat1, thanks
2026-07-11 17:18:26 -04:00
Zur3l
8ad94ec216 Decomp ReturnEggExclusiveItem 2026-07-11 17:18:26 -04:00
Zur3l
38704de35e Decomp GetMoneyQuantity 2026-07-11 17:18:26 -04:00
Zur3l
5a60a98ad9 Decomp sub_0200D894 2026-07-11 17:18:26 -04:00
Zur3l
a929271ae0 Decomp AreItemsEquivalent 2026-07-11 17:18:26 -04:00