Hello, has someone experiance with a 32 bits integer lib for ff.
I'm working with a BME280 sensor, and to get results I need to do 32 bits oparations ( * + / shr shl ).
Using the scamp3 as forth processor.
Any help is welcome.
Cheers, Jan
❤️
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I put together a file "forth/dmath.fs" that contains double signed (32-bit) operations.
It should work also on PIC18 as it also supports the underlying 32/64-bit operations
that are needed to implement the 32/32 bit operations.
The 32/64-bit operations have not been implemented on AVR yet.
Just briefly tested manually on my PIC24. They should work also on the Scamp as it has the same basic FlashForth dictionary.
BR Mike
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, has someone experiance with a 32 bits integer lib for ff.
I'm working with a BME280 sensor, and to get results I need to do 32 bits oparations ( * + / shr shl ).
Using the scamp3 as forth processor.
Any help is welcome.
Cheers, Jan
I put together a file "forth/dmath.fs" that contains double signed (32-bit) operations.
It should work also on PIC18 as it also supports the underlying 32/64-bit operations
that are needed to implement the 32/32 bit operations.
The 32/64-bit operations have not been implemented on AVR yet.
Just briefly tested manually on my PIC24. They should work also on the Scamp as it has the same basic FlashForth dictionary.
BR Mike
Thanks Mikael, this whas verry helpfull
Cheers, Jan