Skip to content

Add EZ-Flash V(+) platform#201

Open
edo9300 wants to merge 26 commits into
LNH-team:developfrom
edo9300:ez5h
Open

Add EZ-Flash V(+) platform#201
edo9300 wants to merge 26 commits into
LNH-team:developfrom
edo9300:ez5h

Conversation

@edo9300

@edo9300 edo9300 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Add support for the slot1 cart from EZ-Flash (decent, unlike the parallel).
This cart doesn't seem to support multi blocks read/write commands, hence the sdio (including DMA) is implemented using single block commands.
Both sdsc and sdhc are supported and have been tested (sdsc/hc on EZ Flash V+ and sdsc on EZ Flash V)

edo9300 added 23 commits June 30, 2026 23:33
This evens out the instruction count in readsector and dosdoperation, saving 2 bytes in readsector
pass the in/outbuff also in the first stack slot in doSdOperation, the sdio functions will then take care of updating it incremented by 512 bytes, removing the need to do that externally
the label was wrongly moved, making it no longe return the sd command, update the logic to have the function signal failure with the negative bit being set
this will leave us only with the zero/carry flags updated, and clear the negative flag, allowing us to differentiate it from the sdio error one
Comment thread arm9/source/patches/platform/ez5h/Ez5hLoaderPlatform.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm starting to get a bit annoyed by every platform coming up with its own definitions of similar things. We should probably make some shared include file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree that having at least the register constants and the function macro (which is borrowed from libnds) in a common header could be helpful to remove duplication, maybe even the CALL_NO_INTERWORK macro could be worth having defined in the common header?

Comment thread arm9/source/patches/platform/ez5h/asminc.h
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