Skip to content

platform: add DMA support for the RPG family of flashcarts#163

Open
lifehackerhansol wants to merge 2 commits intoLNH-team:developfrom
lifehackerhansol:rpg-dma
Open

platform: add DMA support for the RPG family of flashcarts#163
lifehackerhansol wants to merge 2 commits intoLNH-team:developfrom
lifehackerhansol:rpg-dma

Conversation

@lifehackerhansol
Copy link
Copy Markdown
Contributor

No description provided.

@Gericom
Copy link
Copy Markdown
Contributor

Gericom commented May 3, 2026

The dma patch code you added looks very similar. Can we avoid duplication?

@lifehackerhansol
Copy link
Copy Markdown
Contributor Author

Not really, because of the different parameters each platform needs:

  • R4iDSN commands start with 0xAB, while others start with 0xD5
  • AKRPG card state command returns its "state" in the lower nibble, while the rest returns it in the upper nibble

We could programmatically patch those instructions I suppose, but I haven't tried it.

@Gericom
Copy link
Copy Markdown
Contributor

Gericom commented May 3, 2026

Not really, because of the different parameters each platform needs:

* R4iDSN commands start with 0xAB, while others start with 0xD5

* AKRPG card state command returns its "state" in the lower nibble, while the rest returns it in the upper nibble

We could programmatically patch those instructions I suppose, but I haven't tried it.

I guess another option could be to create an .inc file with the code with some #ifdefs. And then in the actual .s files, set the corresponding ifdef and #include the .inc file.

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.

2 participants