mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-26 21:12:07 +00:00
Allow fixed-point constants to have unsigned range (#1084)
For example with Q.4, $F0 is 15.0, which no longer warns
This commit is contained in:
13
test/asm/fixed-point-magnitude.asm
Normal file
13
test/asm/fixed-point-magnitude.asm
Normal file
@@ -0,0 +1,13 @@
|
||||
OPT Q.4
|
||||
println 1.0
|
||||
println -1.0
|
||||
println 0.0625
|
||||
println -0.0625
|
||||
println 7.25
|
||||
println -7.25
|
||||
println 12.25
|
||||
println -12.25
|
||||
println 15.9375
|
||||
println -15.9375
|
||||
println 20.0
|
||||
println -20.0
|
||||
Reference in New Issue
Block a user