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  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 same behavior.
>> 
>> 
>> I think I've managed to workaround this issue in my case. I don't known 
>> if it's the best way to solved but is good enough for me. It seems that 
>> the sdld linker needs to be explicitly informed where to put the 
>> different areas, so I've declared an global symbol at the end of the 
>> boot.asm file:
>> 
>> 
>> ; boot.asm
>> 
>> .globl HexToU8, BOOT_END
>> .area _START (ABS)
>> .org 0
>> ldSP, #0x
>> call HexToU8
>> BOOT_END:
>> 
>> And used the linker flags "-i -b _CODE=BOOT_END -b _START=0" to inform the 
>> start address for the areas. The other files that uses the _CODE(REL,CON) 
>> area the linker relocate them as expected.

AC> It should be sufficient simply to link the startup module first with the
AC> start code first in the code segment and just leave _CODE as 0.

AC> Alan

AC> 
--
AC> ___
AC> Sdcc-user mailing list
AC> Sdcc-user@lists.sourceforge.net
AC> https://lists.sourceforge.net/lists/listinfo/sdcc-user


Best regards,
 Indy Sams
 mailto:i...@driftsolutions.com


--
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


Re: [Sdcc-user] getting started with C8051

2016-08-20 Thread Philipp Klaus Krause
On 19.08.2016 21:54, Maarten Brock wrote:
> 
> Something that every SiLabs C8051Fxxx user bumps into as the first issue
> is that the watchdog is enabled by default at shortest interval and that
> our crt routines take longer than this interval. […]

Thanks for the help with this and the previous issue. From the
experience, I started creating some simple tutorials:
http://www.colecovision.eu/mcs51/

Philipp




signature.asc
Description: OpenPGP digital signature
--
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user