Hello Jan,
>
> Found the float.fth file.
> After loading the neccesary files tried to compile the filed
>
> Two things are missing and can’t find them in the AmFort-6.7 directory.
> 1. What is the definition of d>s
That was answered before:
: d>s drop ;
@martin: just adding a 0 to TOS on "s>d"
Jan,
I can help at d>s
it takes a double and turns it to a single number by dropping the high
byte.
It's the opposite of s>d.
One could archive the same effect by droping or by pushing a 0 to TOS.
Regards
Martin
Am Mittwoch, 19. Dezember 2018, 12:16:08 CET schrieb Jan Kromhout via
Amfor
Hello,
Found the float.fth file.
After loading the neccesary files tried to compile the filed
Two things are missing and can’t find them in the AmFort-6.7 directory.
1. What is the definition of d>s
2: Could not found these asm files.
; needed for recognizer
.include "words/get-r
__
> Od: Matthias Trute
> Komu: Everything around amforth
> Datum: 29.05.2015 19:53
> Předmět: Re: [Amforth] Floating point - All_math library in asm
>
>Am Donnerstag, den 28.05.2015, 23:56 +0200 schrieb pito:
>> Hi, there is a "complete fp asm lib" for amforth
Am Donnerstag, den 28.05.2015, 23:56 +0200 schrieb pito:
> Hi, there is a "complete fp asm lib" for amforth at
> https://github.com/igor-m/Amforth-Floating-Point-in-ASM
Cool stuff
btw: flashforth from Mikael Nordman ported the FP code and it
runs now on a PIC as well. Thanks to the GPL (v3). We
s
And here is an Example for testing the library :)
Enjoy!
\ Distance and iniBearing of two points on Earth
\ Example for Amforth with floating point asm library installed
\ Calculates distance in meters and initial bearing in degrees based on
\ latidute and longitude of two points on Earth.
\ Uses