Prev: 39914 Up: Map Next: 40229
40217: Get Blend Instruction
Used by the routine at SetKeyPositions.
GetBlendInstruction 40217 LD A,B A=B.
40218 AND %00000011 Keep only bits 0-1.
40220 RET Z Return if 0 (no blending).
40221 CP 1 Compare A with 1...
40223 LD A,174 A=174.
40225 RET NZ Return if the comparison was not zero (XOR blending).
40226 ADD A,8 A+=8.
40228 RET Return (OR blending).
Prev: 39914 Up: Map Next: 40229