Skip to content

Snes: Fix integer overflow for calculating dma overhead#87

Open
denniskempin wants to merge 1 commit into
SourMesen:masterfrom
denniskempin:dmafix
Open

Snes: Fix integer overflow for calculating dma overhead#87
denniskempin wants to merge 1 commit into
SourMesen:masterfrom
denniskempin:dmafix

Conversation

@denniskempin
Copy link
Copy Markdown

RunDma will transfer up to 2^16 bytes, this will overflow the uint8_t counter. This overflow has no practical implications other than SyncEndDma not calculating the right amount of cycles to add.

I am not aware of this behavior causing any issues in games.

RunDma will transfer up to 2^16 bytes, this will overflow the
uint8_t counter. This has no practical implications other than
SyncEndDma not calculating the right amount of cycles to add.

I am not aware of this behavior causing any issues in games.
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