![]() |
Routines |
| Prev: 50275 | Up: Map | Next: 50354 |
|
Tests bits 3 and 7 of the object attribute at ObjectAttributeValue. When both allow it, the display flag chooses the mode.
|
||||
| CheckDisplayBitsThreeAndSeven | 50323 | XOR A | Point HL at the object attribute and go to CheckDisplayBitsThreeAndSeven_0 if bit 3 is clear. | |
| 50324 | LD HL,40989 | |||
| 50327 | BIT 3,(HL) | |||
| 50329 | JR Z,CheckDisplayBitsThreeAndSeven_0 | |||
| 50331 | LD A,4 | Go to CheckDisplayBitsThreeAndSeven_0 if bit 7 of the object attribute is set. | ||
| 50333 | BIT 7,(HL) | |||
| 50335 | JR NZ,CheckDisplayBitsThreeAndSeven_0 | |||
| 50337 | LD A,(40990) | Read the display. | ||
|
Bits 2 and 3 of the display flag choose the mode.
|
||||
| 50340 | AND 12 | Jump to CheckDisplayBitsThreeAndSeven_0 with 5 if bits 2 and 3 of the display flag are both set. | ||
| 50342 | CP 12 | |||
| 50344 | LD A,5 | |||
| 50346 | JR Z,CheckDisplayBitsThreeAndSeven_0 | |||
| 50348 | LD A,7 | Use 7 for the display. | ||
| CheckDisplayBitsThreeAndSeven_0 | 50350 | LD (40975),A | Store it in the display mode. | |
| 50353 | RET | Return. | ||
| Prev: 50275 | Up: Map | Next: 50354 |