![]() |
Routines |
| Prev: 9C79 | Up: Map | Next: 9D25 |
|
Used by the routines at DrawGraphic_Upright, DrawGraphic_Mirrored, DrawGraphic_RotatedLeft, DrawGraphic_Transposed, DrawGraphic_Flipped, DrawGraphic_RotatedHalf, DrawGraphic_TransposedFlipped and DrawGraphic_RotatedRight.
Gets the instruction that DrawGraphic uses to mix a graphic with what is on the screen, from bits 0-1 of the attribute.
|
||||||||||||||||||||||
| GetBlendInstruction | 9D19 | LD A,B | Fetch the attribute. | |||||||||||||||||||
| 9D1A | AND %00000011 | Keep only bits 0-1. | ||||||||||||||||||||
| 9D1C | RET Z | Return if 00 (no blending). | ||||||||||||||||||||
| 9D1D | CP $01 | Compare A with 01... | ||||||||||||||||||||
| 9D1F | LD A,$AE | A=AE. | ||||||||||||||||||||
| 9D21 | RET NZ | Return if the comparison was not zero (XOR blending). | ||||||||||||||||||||
| 9D22 | ADD A,$08 | A+=08. | ||||||||||||||||||||
| 9D24 | RET | Return (OR blending). | ||||||||||||||||||||
| Prev: 9C79 | Up: Map | Next: 9D25 |