RAM map: direct-page layout per mode for struct storage #14

Open
opened 2026-10-29 10:17:14 +00:00 by Gatchan · 0 comments
Owner

Open question from the RAM map slice 1 (refs #7, docs/ram_map.md).

The direct page $00-$FF is described as one [[var]] per concept with mode = [...]. That is fine for the wram storage phase (accessors read the emulated WRAM). When a subsystem switches to storage = "struct", the generator must emit one C structure per mode and a projection back to WRAM. Decide then whether the map gets one region/struct per mode (dp_field, dp_battle, dp_btlgfx ...) or whether the generator groups the vars by mode.

To do with the first subsystem that switches to struct storage.

Open question from the RAM map slice 1 (refs #7, `docs/ram_map.md`). The direct page `$00-$FF` is described as one `[[var]]` per concept with `mode = [...]`. That is fine for the `wram` storage phase (accessors read the emulated WRAM). When a subsystem switches to `storage = "struct"`, the generator must emit one C structure per mode and a projection back to WRAM. Decide then whether the map gets one region/struct per mode (`dp_field`, `dp_battle`, `dp_btlgfx` ...) or whether the generator groups the vars by `mode`. To do with the first subsystem that switches to struct storage.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Gatchan/FF6Portage#14
No description provided.