I've coded for years in CA65 and after seeing some amazing work done using CC65, I've decided to try my hand at it.
However I have encountered some problems in trying to convert CA65 ASM syntax into something CC65 likes.
For now, my workaround has been to make ASM libraries and just call those any time I encounter a problem.
Here is a very simple example. I put some raw CHR data in BANK5, and I want to access it by address.
In CA65 I would do something like this (assuming all my linker settings are properly setup):
.segment "BANK5"
CHR_LABEL:
.incbin "chrtiles.bin"
and back in my main code, once I have bank switched I could get at it like this:
LDA #<CHR_LABEL
LDX #>CHR_LABEL
I have no clue how to do the same type of thing in CC65. Thats why I'm using ASM libraries and calling those instead.
What would be the CC65 equivalent for
".segment"
".incbin"
and getting the address/label for the chunk of data
Thanks
Al
However I have encountered some problems in trying to convert CA65 ASM syntax into something CC65 likes.
For now, my workaround has been to make ASM libraries and just call those any time I encounter a problem.
Here is a very simple example. I put some raw CHR data in BANK5, and I want to access it by address.
In CA65 I would do something like this (assuming all my linker settings are properly setup):
.segment "BANK5"
CHR_LABEL:
.incbin "chrtiles.bin"
and back in my main code, once I have bank switched I could get at it like this:
LDA #<CHR_LABEL
LDX #>CHR_LABEL
I have no clue how to do the same type of thing in CC65. Thats why I'm using ASM libraries and calling those instead.
What would be the CC65 equivalent for
".segment"
".incbin"
and getting the address/label for the chunk of data
Thanks
Al