Re: [Sdcc-user] Status of SDCC inline support and fixes to review

2009-12-01 Thread Maarten Brock
Hi Pavel, I'm sorry I don't have the time to look deeper into your patches right now. I do welcome them though. And as long as they are in the tracker they will not be forgotten, esp. if they solve bugs and the patch is mentioned in the bug item. My main concern with SDCC is still fixing as m

Re: [Sdcc-user] Z80 Port I/O

2009-12-01 Thread Guy Hutchison
I have gotten the best results by writing the entire routine in assembly and then linking it with C code. The calling convention isn't well documented, but not hard to understand by looking at the list files. Here is a sample routine that takes a single 16 bit argument and returns a 32 bit result

[Sdcc-user] Status of SDCC inline support and fixes to review

2009-12-01 Thread Pavel Pisa
Dear SDCC developers and users, because of I have stuck on the broken SDCC inline support years ago and we still maintain compatibility for MCS51 in our project we cannot keep hackery to burden moder RISC cores, I have decided to solve things on right side - in SDCC compiler. There is wainting se

[Sdcc-user] Z80 Port I/O

2009-12-01 Thread Indy Sams
Hello, I needed a Port I/O routine for the Z80 that would accept the address as a parameter, so I wrote 2 functions with inline ASM to do it. I would have used sfr, but the addresses need to be passed as a parameter (ie. I can't just #define or hardcode them). I'm pretty new to ASM, and wi