[Flashforth-devel] Fwd: Re: C function with more parameters in W0-W7
Brought to you by:
oh2aun
From: Mikael N. <mik...@fl...> - 2015-06-04 19:15:36
|
the files https://github.com/igor-m/EXPERIMENTAL_ZZ/tree/master/examples/Cfun ______________________________________________________________ > Od: "om1zz" <om...@vo...> > Komu: Mikael Nordman <mik...@fl...> > Datum: 04.06.2015 19:00 > Předmět: C function with more parameters in W0-W7 > >MIke, I cope with following issue: > >I have a Cfunction, with 5 parameters, returning float. > >So I am using W0-W7 for params. > >The strange: >First time after the fresh flash the Cfun (when pasting the below into teraterm) returns good result: > >decimal 100 2000 5. $0fdb $4049 $0fdb $4049 Ctest hex ok<#,ram> fa36 3eea > >I can do it repeatedly, I always get good results. > >decimal 100 2000 5. $0fdb $4049 $0fdb $4049 Ctest hex ok<#,ram> fa36 3eea >decimal 100 2000 5. $0fdb $4049 $0fdb $4049 Ctest hex ok<#,ram> fa36 3eea fa36 3eea >decimal 100 2000 5. $0fdb $4049 $0fdb $4049 Ctest hex ok<#,ram> fa36 3eea fa36 3eea fa36 3eea > >In the moment as I do something via prompt (before or after playing with Cfun), the Cfun returns garbage (and also it corrupts the system). > >For example, I cannot get good results when after the fresh flash I do: >$0fdb $4049 2constant pi >decimal 100 2000 5. pi pi Ctest hex > >I've tried push/pop W4-W7, but the same. >I. > |