Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
Need to know of any translations needed from HC11 to S12XD - davidarmstrong72 - Dec 1 14:20:58 2008
I've been reviewing the AN974 application note from Freescale. This
outlines an assembly language set of routines for doing binary
floating point calculations. The original assembly was written for
the HC11 processor. However I'm attempting to get it to work with the
S12XD CPU core. I can get it to assemble, but the output doesn't seem
to be what I expect.
>From what research I've been able to do, it seems that HC11 -> S12X
should be source code compatible, i.e. just reassemble and off you go.
However I'm wondering if there may be some hidden "gotchas" that I'm
not taking into account. (I know all the hardware is different, but
this is just bit manipulation really.)
Comments?
Dave
------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
Re: Need to know of any translations needed from HC11 to S12XD - "James M. Knox" - Dec 1 16:47:25 2008
At 07:20 PM 12/1/2008 +0000, you wrote:
>I've been reviewing the AN974 application note from Freescale. This
>outlines an assembly language set of routines for doing binary
>floating point calculations. ...I can get it to assemble, but the
>output doesn't seem to be what I expect.
>
>... However I'm wondering if there may be some hidden "gotchas" that I'm
>not taking into account.
If I recall correctly from when I picked up that code some years
back, there were a number of bugs - especially having to do with some
of the multiply/divide functions. We fixed them and sent a copy back
to the author, but I doubt that Motorola/Freescale ever updated their files.
Is this your problem? Depends... For basic 2.0 x 3.0 = 6.0 stuff it
should work. If you aren't getting that, then the problem is elsewhere.
jmk
-----------------------------------------------
James M. Knox
TriSoft ph 512-385-0316
1300 Koenig Lane West fax 512-371-5716
Suite 200
Austin, Tx 78756 j...@trisoft.com
-----------------------------------------------
------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
Re: Need to know of any translations needed from HC11 to S12XD - alex_bratovic - Dec 10 6:21:02 2008
Hi Dave
Motorola's Gordon Doughman uploaded hc12fp.asm to the files area of
this group back on Sept 20th 2002 which is probably the version James
Knox refers to.
cheers
Alex
--- In 6...@yahoogroups.com, "davidarmstrong72"
wrote:
>
> I've been reviewing the AN974 application note from Freescale. >
> Comments?
>
> Dave
>
------------------------------------

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )