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-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

[Sdcc-user] getting started with C8051

2016-08-19 Thread Philipp Klaus Krause
I'm just trying to write my first C8051 program: __sfr __at(0xa0) P2; __sfr __at(0xa6) P2MDOUT; __sfr __at(0xe2) XBR1; unsigned long int u = 0; #define u 0ul void main(void) { // Enable port output XBR1 = 0x40; P2MDOUT = 0x0c; for(;;) P2 = ((u / 1

Re: [Sdcc-user] getting started with C8051

2016-08-19 Thread Maarten Brock
> I'm just trying to write my first C8051 program: > > __sfr __at(0xa0) P2; > __sfr __at(0xa6) P2MDOUT; > __sfr __at(0xe2) XBR1; > > unsigned long int u = 0; > #define u 0ul > > void main(void) > { > // Enable port output > XBR1 = 0x40; > P2MDOUT = 0x0c; > > for(;;) >

Re: [Sdcc-user] getting started with C8051

2016-08-19 Thread benjamin
> I'm just trying to write my first C8051 program: > > __sfr __at(0xa0) P2; > __sfr __at(0xa6) P2MDOUT; > __sfr __at(0xe2) XBR1; > > unsigned long int u = 0; > #define u 0ul > > void main(void) > { > // Enable port output > XBR1 = 0x40; > P2MDOUT = 0x0c; > > for(;;) >

Re: [Sdcc-user] getting started with C8051

2016-08-19 Thread Maarten Brock
>> I'm just trying to write my first C8051 program: >> >> __sfr __at(0xa0) P2; >> __sfr __at(0xa6) P2MDOUT; >> __sfr __at(0xe2) XBR1; >> >> unsigned long int u = 0; >> #define u 0ul >> >> void main(void) >> { >> // Enable port output >> XBR1 = 0x40; >> P2MDOUT = 0x0c; >> >> for(