Re: [Flashforth-devel] Fwd: Re: C function with more parameters in W0-W7
Brought to you by:
oh2aun
From: om1zz <om...@vo...> - 2015-06-06 16:31:09
|
Solved, see examples. I. _____________________________________________________________ >> 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. >> > > > >------------------------------------------------------------------------------ >_______________________________________________ >Flashforth-devel mailing list >Fla...@li... >https://lists.sourceforge.net/lists/listinfo/flashforth-devel > |