Re: [Sdcc-user] Optimisation in sdcc + more

2007-06-21 Thread Gudjon I. Gudjonsson
Hi Dan On Thursday 21 June 2007 12:56:42 Dan Ellis wrote: > Gudjon I. Gudjonsson wrote: > > Hi > >I made the following c-code: > > > > // Initialize Module 0 in capture mode > > CCAPM0=0x21; // Capture positive edge first > > // for measuring pulse width > > flag_0=0; > >

Re: [Sdcc-user] Optimisation in sdcc + more

2007-06-21 Thread Dan Ellis
Gudjon I. Gudjonsson wrote: > > Hi >I made the following c-code: > > // Initialize Module 0 in capture mode > CCAPM0=0x21; // Capture positive edge first > // for measuring pulse width > flag_0=0; > n=1; > AUXR1=0x01; > meas_end=res_dph_addr[n]; > _asm > mov dph, _m

Re: [Sdcc-user] Optimisation in sdcc + more

2007-06-21 Thread Prashanthi Chapala
Hi, I got the syntax. .include "filename". Thanks for your help. Thanks, Prashanthi --- "Gudjon I. Gudjonsson" <[EMAIL PROTECTED]> wrote: > Hi >I made the following c-code: > > // Initialize Module 0 in capture mode > CCAPM0=0x21; // Capture positive edge first > // f

[Sdcc-user] Optimisation in sdcc + more

2007-06-21 Thread Gudjon I. Gudjonsson
Hi I made the following c-code: // Initialize Module 0 in capture mode CCAPM0=0x21; // Capture positive edge first // for measuring pulse width flag_0=0; n=1; AUXR1=0x01; meas_end=res_dph_addr[n]; _asm mov dph, _meas_end mov dpl, #0 _endasm; AUXR1=0; meas_end