![]() |
Routines |
| Prev: 50323 | Up: Map | Next: 50385 |
|
Tests bits 2 and 6 of the object attribute at ObjectAttributeValue. When both allow it, the display flag chooses the mode.
|
||||
| CheckDisplayBitsTwoAndSix | 50354 | XOR A | Point HL at the object attribute and go to CheckDisplayBitsTwoAndSix_0 if bit 2 is clear. | |
| 50355 | LD HL,40989 | |||
| 50358 | BIT 2,(HL) | |||
| 50360 | JR Z,CheckDisplayBitsTwoAndSix_0 | |||
| 50362 | LD A,4 | Go to CheckDisplayBitsTwoAndSix_0 if bit 6 of the object attribute is set. | ||
| 50364 | BIT 6,(HL) | |||
| 50366 | JR NZ,CheckDisplayBitsTwoAndSix_0 | |||
| 50368 | LD A,(40990) | Read the display. | ||
|
Bits 0 and 1 of the display flag choose the mode.
|
||||
| 50371 | AND 3 | Jump to CheckDisplayBitsTwoAndSix_0 with 5 if bits 0 and 1 of the display flag are both set. | ||
| 50373 | CP 3 | |||
| 50375 | LD A,5 | |||
| 50377 | JR Z,CheckDisplayBitsTwoAndSix_0 | |||
| 50379 | LD A,7 | Use 7 for the display. | ||
| CheckDisplayBitsTwoAndSix_0 | 50381 | LD (40976),A | Store it in the display mode. | |
| 50384 | RET | Return. | ||
| Prev: 50323 | Up: Map | Next: 50385 |