From oskar at atk-it.com Thu Sep 20 08:58:32 2007 From: oskar at atk-it.com (Oskar Atkinson) Date: Thu Sep 20 09:09:32 2007 Subject: [Icc-mot] GNU to ICC References: <62B9B4B3C4921F48A08F1F160197507009414E@atk-master.atk-it.com> <001601c7e73a$1a201ca0$a300a8c0@REKS> Message-ID: <62B9B4B3C4921F48A08F1F16019750700491C5@atk-master.atk-it.com> still learning and well, now I am stuck with some inline assembler ... in GCC it is: __asm__ __volatile__ ("emul\n" "ldx #100\n" "ediv\n": "=y" (utmp1): "y" (flash4.ReqFuel), "d" (utmp1): "x"); the GCC syntax is asm( asm instuctions : output : input : clobbered registers ); I read above in terms of parameters as: load the content of C variable flash4.ReqFuel into register y load the content of C variable utmp1 into register edx ldx #100 ediv store the content of register y to the C variable utmp1 reg x content is not valid anymore Thanks for any hints Oskar -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 2766 bytes Desc: not available Url : http://dragonsgate.net/pipermail/icc-mot/attachments/20070920/c9786378/attachment.bin From ekarpicz at freemail.lt Thu Sep 20 10:35:39 2007 From: ekarpicz at freemail.lt (Edward Karpicz) Date: Thu Sep 20 10:48:07 2007 Subject: [Icc-mot] GNU to ICC References: <62B9B4B3C4921F48A08F1F160197507009414E@atk-master.atk-it.com><001601c7e73a$1a201ca0$a300a8c0@REKS> <62B9B4B3C4921F48A08F1F16019750700491C5@atk-master.atk-it.com> Message-ID: <004201c7fbac$a9658d60$0200a8c0@leon> Your GCC inline asm snippet doesn't look rocket science after scannig this: http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html int a=10, b; asm ("movl %1, %%eax; movl %%eax, %0;" :"=r"(b) /* output */ :"r"(a) /* input */ :"%eax" /* clobbered register */ ); Reformatting your code to have ':' in the right position makes it readable __asm__ __volatile__ ("emul\n" "ldx #100\n" "ediv\n" :"=y" (utmp1) :"y" (flash4.ReqFuel),"d" (utmp1) :"x"); output in Y is utmp1 inputs: flash4.ReqFuel in Y reg, utmp1 in D reg clobbered: X reg You are almost right, you just missed emul prior to LDX #100. In C your snippet should be something like this: ////start unsigned short utmp1; unsigned short flash4.ReqFuel; // I don't know anything about flash4 struct utmp1 = ((unsigned long)utmp1 * flash4.ReqFuel) / 100u; ////end Regards Edward ----- Original Message ----- From: "Oskar Atkinson" To: "Discussion List for ICC08/11/12/16 users. You do NOT need to subscribe toicc-announce if you are a member of this." Sent: Thursday, September 20, 2007 6:58 PM Subject: RE: [Icc-mot] GNU to ICC still learning and well, now I am stuck with some inline assembler ... in GCC it is: __asm__ __volatile__ ("emul\n" "ldx #100\n" "ediv\n": "=y" (utmp1): "y" (flash4.ReqFuel), "d" (utmp1): "x"); the GCC syntax is asm( asm instuctions : output : input : clobbered registers ); I read above in terms of parameters as: load the content of C variable flash4.ReqFuel into register y load the content of C variable utmp1 into register edx ldx #100 ediv store the content of register y to the C variable utmp1 reg x content is not valid anymore Thanks for any hints Oskar -------------------------------------------------------------------------------- > _______________________________________________ > Icc-mot mailing list > Icc-mot@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-mot > From rbirac at cox.net Fri Sep 28 13:30:25 2007 From: rbirac at cox.net (Alex Brown) Date: Fri Sep 28 13:42:51 2007 Subject: [Icc-mot] Vista compatibility References: <00cd01c7b9ab$02b5e610$6401a8c0@ddt2> <200706282040.l5SKe4xd099242@dragonsgate2.imagecraft.com> Message-ID: <06aa01c8020e$66846710$6901a8c0@ddt2> Richard, Did you ever issue the new release with a correction for this problem? I couldn't find it on your website. Alex ----- Original Message ----- From: "Richard" To: "Discussion List for ICC08/11/12/16 users. You do NOT need to subscribe toicc-announce if you are a member of this." ; Sent: Thursday, June 28, 2007 1:29 PM Subject: Re: [Icc-mot] Vista compatibility > It's almost certain that the V6 licensing engine has problems with Vista. > Not sure why... The latest V7 will need to be rebuilt to be compatible as > well. I plan to release a new ICC12 in the next few weeks. > > At 10:37 AM 6/28/2007, Alex Brown wrote: >>Hi, >> >> Can anyone tell me if and how ICC12 (ver 6.14, an oldie but works for >> me) can be installed to run on Windows Vista? It seemed to install OK, >> but wouldn't come up. Vista says it looked for a solution to the >> problem, but didn't report anything. >> >>Thanks, >>Alex > > // richard (This email is for mailing lists. To reach me directly, please > use richard at imagecraft.com) > _______________________________________________ > Icc-mot mailing list > Icc-mot@imagecraft.com > http://dragonsgate.net/mailman/listinfo/icc-mot > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: > 269.9.10/875 - Release Date: 6/27/2007 9:08 PM > > From richard-lists at imagecraft.com Fri Sep 28 14:12:27 2007 From: richard-lists at imagecraft.com (Richard) Date: Fri Sep 28 14:24:08 2007 Subject: [Icc-mot] Vista compatibility In-Reply-To: <06aa01c8020e$66846710$6901a8c0@ddt2> References: <00cd01c7b9ab$02b5e610$6401a8c0@ddt2> <200706282040.l5SKe4xd099242@dragonsgate2.imagecraft.com> <06aa01c8020e$66846710$6901a8c0@ddt2> Message-ID: <200709282124.l8SLO7sp083844@dragonsgate2.imagecraft.com> I wasn't thinking right if I wrote that in June? :-) The latest ICCv7 for CPU12 has a licensing engine compatible with Vista since March, I think... At 01:30 PM 9/28/2007, Alex Brown wrote: >Richard, > > Did you ever issue the new release with a correction for this > problem? I couldn't find it on your website. > >Alex > >----- Original Message ----- From: "Richard" >To: "Discussion List for ICC08/11/12/16 users. You do NOT need to >subscribe toicc-announce if you are a member of this." >; >Sent: Thursday, June 28, 2007 1:29 PM >Subject: Re: [Icc-mot] Vista compatibility > > >>It's almost certain that the V6 licensing engine has problems with >>Vista. Not sure why... The latest V7 will need to be rebuilt to be >>compatible as well. I plan to release a new ICC12 in the next few weeks. >> >>At 10:37 AM 6/28/2007, Alex Brown wrote: >>>Hi, >>> >>> Can anyone tell me if and how ICC12 (ver 6.14, an oldie but >>> works for me) can be installed to run on Windows Vista? It >>> seemed to install OK, but wouldn't come up. Vista says it looked >>> for a solution to the problem, but didn't report anything. >>> >>>Thanks, >>>Alex // richard (This email is for mailing lists. To reach me directly, please use richard at imagecraft.com)