![]() |
Routines |
| Prev: 55524 | Up: Map | Next: 56426 |
|
Used by the routine at TestGroupObjects.
Tests whether an object is at the position that is stored at RestartCandidate and 58568, and if it is then clears the flag at 58567.
|
||||||||
| TestObjectMatch | 56383 | LD HL,(23736) | The high nibble of the object's first byte, beside the word at TitleAnimationFrame. | |||||
| 56386 | LD A,(IY+0) | |||||||
| 56389 | AND 240 | |||||||
| 56391 | LD L,A | |||||||
| 56392 | LD DE,(58566) | It matches the stored position at RestartCandidate. | ||||||
| 56396 | AND A | |||||||
| 56397 | SBC HL,DE | |||||||
| 56399 | JR NZ,TestObjectMatch_Skip | |||||||
| 56401 | LD HL,(23737) | The same byte shifted up by four, beside the cell position. | ||||||
| 56404 | LD A,(IY+0) | |||||||
| 56407 | ADD A,A | |||||||
| 56408 | ADD A,A | |||||||
| 56409 | ADD A,A | |||||||
| 56410 | ADD A,A | |||||||
| 56411 | LD L,A | |||||||
| 56412 | LD DE,(58568) | It matches the stored position at 58568. | ||||||
| 56416 | AND A | |||||||
| 56417 | SBC HL,DE | |||||||
| 56419 | JR NZ,TestObjectMatch_Skip | |||||||
| 56421 | XOR A | Clear the flag at 58567. | ||||||
| 56422 | LD (58567),A | |||||||
| TestObjectMatch_Skip | 56425 | RET | Return. | |||||
| Prev: 55524 | Up: Map | Next: 56426 |