Hi,
I am resending to Matthias a new version 2.0 of the Pito's 4
primitives called 5 primitives. The lib is redone, no warnings when
compiled, cleaner code, maybe faster, and I added fsqrt. Most
important is the T flag dependency is removed, thus no issues with
interrupts observed yet.
The lib requ
Hi Hannu
> Would it be good idea to change the 8k requirement from web page to
> something like Amforth takes about 8k Flash but doesn't fit out of
> box to 8k MCUs?
Well, maybe. Microcontrollers in general and amforth in
particular are no easy toys anyway... The German Forth
FIG prepares some w
> marker -myrecflt
ok
> : rec-float count >float
okif state @ if postpone fliteral then -1 else 0 then
ok;
ok
> : place-rec ( xt -- )
okget-recognizer
okdup >r
ok1- n>r
okswap
oknr> drop r> 1+
okset-recognizer
ok;
ok
> ' rec-float place-rec
ok
> .s
ok
> 4.00e3 -5.00e3 f* fs.
-2.0E7 ok
> 355.0 113
Yes, the CLI/SEI helped, however it it not the best solution,
though. I'll try to remove T handling from my asm.
But still coping with rec-float..
P.
- PŮVODNÍ ZPRÁVA -
Od: "Matthias Trute"
Komu: "pito"
Předmět: Re: [Amforth] Interrupts - T flag, asm float problem
Datum: 27.5.2011 - 8:03