Prev: BDBD Up: Map Next: BDD8
BDC8: Negate a term of a slope bounce
Used by the routine at bounce_shallow_negate.
For a box with bit 7 of its kind set, or of kind 3, the whole word is negated (negate_hl); otherwise only its whole part (negate_high_byte).
Input
C the box's kind
HL the term
slope_negate BDC8 BIT 7,C bit 7 or kind 3: all of it; otherwise the whole part
BDCA JP NZ,negate_hl
BDCD LD A,C
BDCE AND $07
BDD0 CP $03
BDD2 JP Z,negate_hl
BDD5 JP negate_high_byte
Prev: BDBD Up: Map Next: BDD8