Hello SDCC users,
I'm doing a project with the famous Z80 just for fun, and decided to use
the sdasz80 assembler. My project consists of multiple source files to
keep everything modular. I'm having a problem with the linking step.
I've 2 source files: boot.asm and numconv.asm:
; boot.asm:
.g
> Hello SDCC users,
>
>
> I'm doing a project with the famous Z80 just for fun, and decided to use
> the sdasz80 assembler. My project consists of multiple source files to
> keep everything modular. I'm having a problem with the linking step.
> I've 2 source files: boot.asm and numconv.asm:
>
>
> ;
I've tried what you suggested, linking the boot.rel first results in the
opposite effect, the _START area gets overwritten by the _CODE area.
Here a small showcase for the problem I'm having:
; boot.asm:
.globl HexToU8
.area _START (ABS,OVR)
.org 0
ldSP, #0x
call
While I don't have sdcc loaded at the moment, and haven't used it
for Z80, isn't the OVR in .area _START (ABS,OVR) indicating that that
segment can be overlayed (which is not what you want)? I'd check the linker
manual or just try removing it and see if your problem goes away.
Peter Van