Continuing from #74:
The idea is simple, something like:
could be auto extended to
This is the easiest case where the number of "decimal" digits can be deduced from the width of the instruction (.l for this example).
However we could extend this - for example there can be a global constant (like I dunno, ^^decimaldigits?) that can force the amount of digits for this (with the appropriate checks of course).
Now that most of the floating point stuff is in place, this shouldn't be a big pain to do!
We could have a regular old directive (maybe something like .fixedpoint NN, where NN is the # of fractional bits) that would also tell the assembler that it was in fixed point mode, and to create constants appropriately. Would probably need another one to tell it to come out of fixed point mode, maybe .floatpoint to tell it to go back to standard behavior.
At any rate, it should be fairly easy to do, so let's do it! :-D