mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Implement opt Q for fixed-point precision, and q literals (e.g. 12.34q8) (#958)
Fixes #957 Co-authored-by: ISSOtm <eldredhabert0@gmail.com>
This commit is contained in:
@@ -3,11 +3,13 @@ SECTION "test", ROM0
|
||||
opt !h, !L ; already the default, but tests parsing "!"
|
||||
|
||||
pusho
|
||||
opt p42, h, L, Wno-div
|
||||
opt p42, Q.4, h, L, Wno-div
|
||||
ds 1
|
||||
ld [$ff88], a
|
||||
halt
|
||||
println $8000_0000 / -1
|
||||
def n = 3.14
|
||||
println "{x:n} = {f:n}"
|
||||
popo
|
||||
|
||||
opt H, l
|
||||
@@ -16,3 +18,5 @@ popo
|
||||
ld [$ff88], a
|
||||
halt
|
||||
println $8000_0000 / -1
|
||||
def n = 3.14
|
||||
println "{x:n} = {f:n}"
|
||||
|
||||
Reference in New Issue
Block a user