![]() |
Routines |
| Prev: FE98 | Up: Map | Next: FEC0 |
|
Used by the routine at 8B90.
|
||||
| FEA2 | LD A,($C51C) | Put the expected attribute in B. | ||
| FEA5 | LD B,A | |||
| FEA6 | LD HL,($5C7B) | Get the position (5C7B, 5C7C). | ||
| FEA9 | INC H | Move up one row and across one column. | ||
| FEAA | LD A,$08 | |||
| FEAC | ADD A,L | |||
| FEAD | LD L,A | |||
| FEAE | CALL $FEC0 | Get the attribute at this position. | ||
| FEB1 | CP B | Does it match? | ||
| FEB2 | RET Z | Return if it does. | ||
| FEB3 | LD HL,($5C7B) | Get the position (5C7B, 5C7C). | ||
| FEB6 | LD D,$F1 | Move down one row and across one column. | ||
| FEB8 | LD E,$08 | |||
| FEBA | ADD HL,DE | |||
| FEBB | CALL $FEC0 | Get the attribute at this position. | ||
| FEBE | CP B | Does it match? | ||
| FEBF | RET | Return with the zero flag set if it does. | ||
| Prev: FE98 | Up: Map | Next: FEC0 |