Skip to content

dstt: split read SD patch to reduce patch code space#161

Closed
lifehackerhansol wants to merge 1 commit into
LNH-team:developfrom
lifehackerhansol:dstt-reduce-patch-space
Closed

dstt: split read SD patch to reduce patch code space#161
lifehackerhansol wants to merge 1 commit into
LNH-team:developfrom
lifehackerhansol:dstt-reduce-patch-space

Conversation

@lifehackerhansol
Copy link
Copy Markdown
Contributor

Previously the main patch (prior to CMD12) was 0x78 bytes, which caused some games to fail to load.

It has been split into 4 sections:

  • IReadSectorsPatchCode entrypoint
  • Apply 0x54 command
  • Wait for data ready loop
  • Transfer data loop

Additionally, the CMD12 command has been split into its own file, in order to reuse this patch code in the future.

Fixes most games from #111, which has a few games not working in the list due to a lack of a DMA implementation.

Previously the main patch (prior to CMD12) was 0x78 bytes, which caused
some games to fail to load.

It has been split into 4 sections:
- IReadSectorsPatchCode entrypoint
- Apply 0x54 command
- Wait for data ready loop
- Transfer data loop

Additionally, the CMD12 command has been split into its own file, in
order to reuse this patch code in the future.
@lifehackerhansol lifehackerhansol force-pushed the dstt-reduce-patch-space branch from e45ce60 to 65a5d15 Compare April 20, 2026 02:46
@lifehackerhansol
Copy link
Copy Markdown
Contributor Author

Superseded by #162 .

@lifehackerhansol lifehackerhansol deleted the dstt-reduce-patch-space branch May 10, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant