Use RGBDS 0.9.0 (#1159)

This commit is contained in:
Rangi
2024-12-25 21:24:37 -05:00
committed by GitHub
parent 13621fae93
commit 61c9ba5f6c
15 changed files with 47 additions and 67 deletions

View File

@@ -35,17 +35,11 @@ MACRO maskbits
; cp 26
; jr nc, .loop
assert 0 < (\1) && (\1) <= $100, "bitmask must be 8-bit"
DEF x = 1
rept 8
if x + 1 < (\1)
DEF x = (x << 1) | 1
endc
endr
DEF x = (1 << BITWIDTH((\1) - 1)) - 1
if _NARG == 2
and x << (\2)
else
and x
DEF x <<= \2
endc
and x
ENDM
MACRO calc_sine_wave