Skip to content

Identify wLinkData components #1219

@Rangi42

Description

@Rangi42

wLinkData is an opaque 1300-byte buffer used for transferring Link Cable data. However, the reason it's 1300 bytes is because it reuses wOverworldMapBlocks. The amount that's actually uses is under 500 bytes. Identifying exactly how it's used would be useful.

Only engine/link/link.asm uses it, buffering different kinds of data into it, so it will need its own UNION to document each unique use.

ClearLinkData does clear all 1300 bytes, so we can't actually make it smaller in pokecrystal itself, but if we document that only the first N bytes are used, then forks can do so safely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions