Re: [Sdcc-user] official SDCC forum

2011-05-13 Thread Mark Rages
e going after the SDCC community as well. Please take your spam elsewhere -- and I don't mean another mailing list! Regards, Mark markrages@gmail -- Mark Rages, Engineer Midwest Telecine LLC markra...@midwesttelecine.com -

Re: [Sdcc-user] Is pic16f1824 supported

2011-02-07 Thread Mark Rages
etter ADC input impedance. And the "value-line" MSP430 is pretty inexpensive. Maybe you're using the wrong MSP430? Regards, Mark markrages@gmail -- Mark Rages, Engineer Midwest Telecine LLC markra...@midwesttelecine.com --

Re: [Sdcc-user] Microchip AN724 compiled by SDCC ?

2007-08-26 Thread Mark Rages
sm file and go through it, optimizing by hand. (but you're not really programming in C after this.) Regards, Mark [EMAIL PROTECTED] -- Mark Rages, Engineer Midwest Telecine LLC [EMAIL PROTECTED] - This SF.net email is s

Re: [Sdcc-user] Improvement to printf_tiny

2007-08-09 Thread Mark Rages
rceforge.net and attach the patch? -- Mark Rages, Engineer Midwest Telecine LLC [EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events an

Re: [Sdcc-user] How to express binary number in SDCC?

2007-06-17 Thread Mark Rages
w because I asked the same question in February. -- Mark Rages, Engineer Midwest Telecine LLC [EMAIL PROTECTED] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take cont

Re: [Sdcc-user] How to express binary number in SDCC?

2007-06-17 Thread Mark Rages
binary number in SDCC? > I don't want the hexadecimal expression like i = 0x0a > > TIA > macro at http://sourceforge.net/tracker/index.php?func=detail&aid=882215&group_id=599&atid=350599 -- Mark Rages, Engineer Midwest Telecine LLC [EMAIL PROTECTED]

Re: [Sdcc-user] Some fundamental PIC16 interrupt questions

2007-03-14 Thread Mark Rages
On 3/14/07, Matt Bauman <[EMAIL PROTECTED]> wrote: > Hello all, > > I recently started playing around with SDCC to program PIC16 > devices. I'm moving from a compiler that implemented interrupts in > software (by appending an if...then after every line of code!), so > hardware interrupts are new a

Re: [Sdcc-user] Initialized data in PIC16?

2007-03-12 Thread Mark Rages
On 3/12/07, Mark Rages <[EMAIL PROTECTED]> wrote: > HI, > > I'm using the pic16 port of sdcc, subversion version from this weekend. > > I made a global initailized data like this: > > int firmware[]={1,2,3,4,5}; OK, I figured out how to do what I need: c

[Sdcc-user] Initialized data in PIC16?

2007-03-12 Thread Mark Rages
HI, I'm using the pic16 port of sdcc, subversion version from this weekend. I made a global initailized data like this: int firmware[]={1,2,3,4,5}; and then in my code I try to print it like this: printf_small("%d %d %d",firmware[0], firmware[1], firmware[2]); but only garbage gets printed.

Re: [Sdcc-user] binary representation of integer?

2007-02-17 Thread Mark Rages
On 2/17/07, Frieder Ferlemann <[EMAIL PROTECTED]> wrote: > There's a feature request for this: > http://sourceforge.net/tracker/index.php?func=detail&aid=882215&group_id=599&atid=350599 > > (a handy macro definition (handling 8 bit) is given there.) > > It is probably consensus that as long as ANSI

Re: [Sdcc-user] binary representation of integer?

2007-02-17 Thread Mark Rages
On 2/17/07, Dave McGuire <[EMAIL PROTECTED]> wrote: > On Feb 17, 2007, at 12:24 PM, Mark Rages wrote: > >> There is no printf format specifier for binary in C... You have to > >> write such > >> a function yourself. > > > > That's not w

Re: [Sdcc-user] binary representation of integer?

2007-02-17 Thread Mark Rages
On 2/17/07, Bodo Wenzel <[EMAIL PROTECTED]> wrote: > There is no printf format specifier for binary in C... You have to write such > a function yourself. > > Bodo > That's not what I asked. In Microchip asm, I can type an integer constant in binary as b''. I was wondering if SDCC support

[Sdcc-user] binary representation of integer?

2007-02-16 Thread Mark Rages
Hi, For code readability, I want to write integer constants in binary. Is there a syntax for this in SDCC? I can't find it in the SDCC manual or K&R. Regards, Mark [EMAIL PROTECTED] -- You think that it is a secret, but it never has been one. - fortune cookie ---

Re: [Sdcc-user] Compiling for a specific PIC?

2006-08-02 Thread Mark Rages
On 8/2/06, Brandon Fosdick <[EMAIL PROTECTED]> wrote: > Zik Saleeba wrote: > > Yep, there's a bunch of internal processor configuration stuff the > > compiler needs to know. Although I've actually added internal support > > for it and every other 18-series PIC to sdcc. I just haven't added it > > b

Re: [Sdcc-user] Compiling for a specific PIC?

2006-08-02 Thread Mark Rages
On 8/2/06, Brandon Fosdick <[EMAIL PROTECTED]> wrote: > And the command line: > --- > 19:03 [EMAIL PROTECTED]/devel/pic/test_sdcc>sdcc -c test.c Great, an easy question that I can answer! Try: sdcc -c -mpic16 -p18F458 test.c Regards, Mark [EMAIL PROTECTED] -- You think that it is a secret, b

Re: [Sdcc-user] PIC18F4550 - SFR access

2006-07-17 Thread Mark Rages
On 7/17/06, Jim Paris <[EMAIL PROTECTED]> wrote: > > If I access any SFR above F80h, the access goes to the GPR starting at 080h, > > i.e. instead of selecting the Access Bank (a=0) the BSR is used to select > > the GPR bank (a=1). > > Do you have the extended instruction set enabled? It changes t

[Sdcc-user] Denormalized floating point in SDCC.

2006-07-13 Thread Mark Rages
I posted a bug about this, but I want to bring it up here for other SDCC users to know about. The floating point routine in fsmul.c does not handle denormalized numbers well. I discovered this by doing: float f=1.0; while (1) { f*=0.25; } I expected f to decay to zero, but instead it wrapped

Re: [Sdcc-user] Optimize PIC code using SDCC

2006-06-30 Thread Mark Rages
On 6/30/06, Richard Latter <[EMAIL PROTECTED]> wrote: > Hello All, > > I have an application which I am writiing for the > PIC14 range of processors. I have written the > application in SDCC C. I use the following line: > > sdcc -mpic14 -p16f628.c myproc.c > > The compiled .asm output seems to be q