Add EZ-Flash V(+) platform#201
Open
edo9300 wants to merge 26 commits into
Open
Conversation
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
Gericom
reviewed
Jul 5, 2026
Gericom
reviewed
Jul 5, 2026
Contributor
There was a problem hiding this comment.
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
Contributor
Author
There was a problem hiding this comment.
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?
Gericom
reviewed
Jul 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)