![]() |
Routines |
| Prev: CEDB | Up: Map | Next: CF36 |
|
Tests the attribute address one on from HL: inside rows 3 to 22 of the screen it returns NZ (A=$FF); in the panel's rows 0-2 or the bottom row 23, Z. HL is left as it was.
|
||||||||
| in_play_area | CF14 | INC HL | In the top third: rows 3 and below are inside. | |||||
| CF15 | LD A,H | |||||||
| CF16 | CP $58 | |||||||
| CF18 | JR NZ,in_play_area_2 | |||||||
| CF1A | LD A,L | |||||||
| CF1B | AND $E0 | |||||||
| CF1D | CP $60 | |||||||
| CF1F | JR C,in_play_area_1 | |||||||
| in_play_area_0 | CF21 | DEC HL | Inside. | |||||
| CF22 | OR $FF | |||||||
| CF24 | RET | |||||||
| in_play_area_1 | CF25 | DEC HL | Outside. | |||||
| CF26 | XOR A | |||||||
| CF27 | RET | |||||||
| in_play_area_2 | CF28 | LD A,H | The middle third is inside; in the bottom third, row 23 is outside. | |||||
| CF29 | CP $5A | |||||||
| CF2B | JR NZ,in_play_area_0 | |||||||
| CF2D | LD A,L | |||||||
| CF2E | AND $E0 | |||||||
| CF30 | CP $E0 | |||||||
| CF32 | JR NC,in_play_area_1 | |||||||
| CF34 | JR in_play_area_0 | |||||||
| Prev: CEDB | Up: Map | Next: CF36 |