rgbasm supports "Q16.16" fixed-point literals

"Qm.n" signifies an m-bit two's complement integer
with n fractional bits.
<https://en.wikipedia.org/wiki/Q_(number_format)>
This commit is contained in:
Rangi
2021-05-06 23:17:08 -04:00
parent 869021f47d
commit 5a38f6e148

View File

@@ -91,13 +91,13 @@ section.
The instructions in the macro-language generally require constant expressions.
.Ss Numeric Formats
There are a number of numeric formats.
.Bl -column -offset indent "Fixed point (16.16)" "Prefix"
.Bl -column -offset indent "Fixed point (Q16.16)" "Prefix"
.It Sy Format type Ta Sy Prefix Ta Sy Accepted characters
.It Hexadecimal Ta $ Ta 0123456789ABCDEF
.It Decimal Ta none Ta 0123456789
.It Octal Ta & Ta 01234567
.It Binary Ta % Ta 01
.It Fixed point (16.16) Ta none Ta 01234.56789
.It Fixed point (Q16.16) Ta none Ta 01234.56789
.It Character constant Ta none Ta \(dqABYZ\(dq
.It Gameboy graphics Ta \` Ta 0123
.El