Re: [Sdcc-user] Assembler variable overflow

2023-08-17 Thread Philipp Klaus Krause
Am 17.08.23 um 23:27 schrieb Alan Cox: How do you check over/underflow in C without wasting memory? If your compiler is smart enough then for unsigned maths r = a + b; if (r < a) will be optimized nicely. I've not checked if sdcc knows that and will turn it into a carry check

Re: [Sdcc-user] Assembler variable overflow

2023-08-17 Thread Alan Cox
> How do you check over/underflow in C without wasting memory? If your compiler is smart enough then for unsigned maths r = a + b; if (r < a) will be optimized nicely. I've not checked if sdcc knows that and will turn it into a carry check at least for uint8 and uint16. For sign

Re: [Sdcc-user] Assembler variable overflow

2023-08-17 Thread Benedikt Freisen
Hi! Am 17.08.23 um 22:13 schrieb Michael A Hawkins: Hello SDCC users, I am sure this has been discussed before. So I apologize in advance for repeating it. With assembler, you can test for a reg/mem operation over/under flow by checking the carry flag. So for C, when overflows are involved, I

[Sdcc-user] Assembler variable overflow

2023-08-17 Thread Michael A Hawkins
Hello SDCC users, I am sure this has been discussed before. So I apologize in advance for repeating it. With assembler, you can test for a reg/mem operation over/under flow by checking the carry flag. So for C, when overflows are involved, I have always used larger variables. For 8 bit, use 16 b

[Sdcc-user] assembler

2011-08-29 Thread Michael Marganelli
Please ignore that question. I see now how dumb it was. Michael -- EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than

[Sdcc-user] assembler

2011-08-29 Thread Michael Marganelli
New to SDCC, quite honestly struggling to make things go well. Can anyone suggest an assembler for the output.asm file produced by SDCC? I am on Ubuntu 11.04, running SDCC 3.0.0 and my target chip at the moment is PIC 16F84. Thanks for any help Michael -

[Sdcc-user] assembler/linker version 4.11

2008-08-26 Thread Ulhas Vaidya
Hi, Is code generated by SDCC compatible with assembler/linker version 4.11? A piece of code that would produce an ihx file with assembler/linker version 1.01 produces errors with v 4.11 Shall be thankful for any help -- Ulhas Vaidya

Re: [Sdcc-user] Assembler documentation

2006-07-03 Thread Frieder Ferlemann
Hi, Arvind Govindaraj (RBIN/EDU2) schrieb: > I am currently working on SDCC. Can anybody please tell me where I can > find documentation for the assembler included with SDCC? there's a version online at: http://svn.sourceforge.net/viewcvs.cgi/sdcc/trunk/sdcc/as/doc/asxhtm.html (See also section

[Sdcc-user] Assembler documentation

2006-07-03 Thread Arvind Govindaraj (RBIN/EDU2)
Title: Assembler documentation Hello all,  I am currently working on SDCC. Can anybody please tell me where I can find documentation for the assembler included with SDCC? Thanks in advance Regards Arvind Using Tomcat but need to do more? Need to support web services, security? Get stu