shithub: rgbds

Download patch

ref: 5a38f6e14897f358599e8daf90db1fd701acc1cc
parent: 869021f47d4de631eca1437f598e7915fe4439b4
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Thu May 6 19:17:08 EDT 2021

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)>

--- a/src/asm/rgbasm.5
+++ b/src/asm/rgbasm.5
@@ -91,13 +91,13 @@
 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