Menu

Pure 32 bits math lib for flasforth

2023-04-20
2023-04-21
  • Jan Kromhout

    Jan Kromhout - 2023-04-20

    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
  • Mikael Nordman

    Mikael Nordman - 2023-04-21

    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
  • Jan Kromhout

    Jan Kromhout - 2023-04-21

    Thanks Mikael, this whas verry helpfull
    Cheers, Jan

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.