You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Standardize on $ff ^ X for bitwise negating 8-bit values
This commit is contained in:
@@ -350,7 +350,7 @@ GetSpriteOAMAttr:
|
||||
and PRIORITY | Y_FLIP | X_FLIP
|
||||
ld b, a
|
||||
ld a, [hl]
|
||||
and (PRIORITY | Y_FLIP | X_FLIP) ^ $ff
|
||||
and $ff ^ (PRIORITY | Y_FLIP | X_FLIP)
|
||||
or b
|
||||
ret
|
||||
|
||||
@@ -436,7 +436,7 @@ GetSpriteAnimFrame:
|
||||
push af
|
||||
ld a, [hl]
|
||||
push hl
|
||||
and (Y_FLIP << 1 | X_FLIP << 1) ^ $ff
|
||||
and $ff ^ (Y_FLIP << 1 | X_FLIP << 1)
|
||||
ld hl, SPRITEANIMSTRUCT_DURATIONOFFSET
|
||||
add hl, bc
|
||||
add [hl]
|
||||
|
Reference in New Issue
Block a user