Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify memory operations #22

Closed
mlund opened this issue Jun 14, 2023 · 2 comments · Fixed by #25
Closed

Unify memory operations #22

mlund opened this issue Jun 14, 2023 · 2 comments · Fixed by #25

Comments

@mlund
Copy link
Collaborator

mlund commented Jun 14, 2023

The commit 87ae766 introduced new peek/poke functions in cc65. Ideally these should be available also in KickC and Clang. Related to #18.
Ping @ki-bo.

@mlund
Copy link
Collaborator Author

mlund commented Jul 17, 2023

Are lpeek and dma_peek the same operation implemented in assembler and C, respectively on cc65? Ping @ki-bo

@ki-bo
Copy link
Member

ki-bo commented Jul 17, 2023

@mlund They have the same effect, but dma_poke uses a DMA transfer to write a single byte. This is inefficient. The new lpoke uses 32 bit write operations to do the same in an efficient way.

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 a pull request may close this issue.

2 participants