• AVR Freaks

AnsweredHot!How to make MPASM (et al.) convert a real number to a number format? e.g. Qm.f Fixed-point

Page: < 12 Showing page 2 of 2
Author
Oblivion
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2008/10/05 00:08:00
  • Location: 0
  • Status: offline
Re: How to make MPASM (et al.) convert a real number to a number format? e.g. Qm.f Fixed-p 2019/11/20 02:28:21 (permalink)
0
"... or you can try Olin's MPASM preprocessor PREPIC:"

Interesting. Seems like this very problem is exactly why Olin made that tool.

Yeah, I figured I can't be the only one who ran into this problem. Using that tool would probably make real numbers in ASM possible. ... however ... At that point I'm accepting the use of community/third party tools. To admit that, I would also have to accept other tools as viable. Then, a vary large door has been opened...

GPASM exists, and is open source. So why not rewrite that to do what I REALLY want? But, if I'm going to use GPASM, why not use the whole GPUTILS suite? At that point, gotta' figure that SDCC would also be on the table, and is an ostensibly better choice. (That project sphere desperately needs maintainers/curators, BTW.)

All in all, I'd ultimately end up slipping all the way down the slope, and falling on using C. In which case, I'd almost for sure also be saying bye bye to PIC, and hello to STM32 family. (The NUCLEO boards, in particular, are looking mighty tasty right now.)
#21
Page: < 12 Showing page 2 of 2
Jump to:
© 2020 APG vNext Commercial Version 4.5