Re: [Sdcc-user] Z80 Assembly Development

2016-08-20 Thread Indy Sams
Hello Alan, When I did Z80 work before I just defined the _CODE section in the first source file, that seemed to do the trick. Something like this: http://pastebin.com/jcYSFGig Friday, August 19, 2016, 10:02:11 AM, you wrote: AC> On Fri, 19 Aug 2016 10:51:41 -0300 AC> Augusto Fraga Giachero w

Re: [Sdcc-user] Z80 Assembly Development

2016-08-19 Thread Alan Cox
On Fri, 19 Aug 2016 10:51:41 -0300 Augusto Fraga Giachero wrote: > Hello Peter, > > > As stated in the documentation, the ABS areas "automatically invokes > OVR" (Page 1-27, .area Directive), so (ABS) or (ABS,OVR) have the same > effect, indeed I've tried what you suggested resulting in the s

Re: [Sdcc-user] Z80 Assembly Development

2016-08-19 Thread Augusto Fraga Giachero
Hello Peter, As stated in the documentation, the ABS areas "automatically invokes OVR" (Page 1-27, .area Directive), so (ABS) or (ABS,OVR) have the same effect, indeed I've tried what you suggested resulting in the same behavior. I think I've managed to workaround this issue in my case. I don

Re: [Sdcc-user] Z80 Assembly Development

2016-08-17 Thread Peter Van Epp
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

Re: [Sdcc-user] Z80 Assembly Development

2016-08-17 Thread Augusto Fraga Giachero
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

Re: [Sdcc-user] Z80 Assembly Development

2016-08-17 Thread Maarten Brock
> 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: > > > ;

[Sdcc-user] Z80 Assembly Development

2016-08-17 Thread Augusto Fraga Giachero
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