MEGA65 / mega65-libc

Simple C library for the MEGA65
Other
25 stars 20 forks source link

Unify to single source directory #25

Closed mlund closed 1 year ago

mlund commented 1 year ago

Unify source directories for all compilers. This should make it easier to maintain the library and have common tests.

Some notes:

Closes #18. Closes #22.

ki-bo commented 1 year ago

Thank you for this! Where is lpoke and lpeek defined? Seems those are missing for clang.

mlund commented 1 year ago

Thank you for this! Where is lpoke and lpeek defined? Seems those are missing for clang.

Hi Robert, I think they got renamed in cc65 in 87ae766a4458dc9d54daa570ac6b6bcb04a3ae0e to dma_peek and dma_poke is that right? Perhaps to make room for separate asm implementations now called lpeek and lpoke(?). The two directories started to deviate at that point and I'm not entirely sure if lpeek/poke and dma_peek/poke should both be present. There's also lpeek_debounced().

Update: On non-cc65 compilers, lpeek and lpoke will use dma_peek and dma_poke. Will leave the asm implementation on llvm for another PR.