![]() |
Routines |
| Prev: 6EEF | Up: Map | Next: 6F2C |
|
Used by the routine at ChangeInkAndPaperColour.
Walks the attribute buffer. Wherever the bits selected by B equal C, those bits are replaced with L and the bits in H are kept.
|
||||
| ChangeMatchingColourBits | 6F0A | PUSH IX | ||
| 6F0C | LD IX,$6C7A | |||
| 6F10 | LD DE,$0180 | |||
| ChangeMatchingColourBits_0 | 6F13 | LD A,(IX+$00) | ||
| 6F16 | AND B | |||
| 6F17 | CP C | |||
| 6F18 | JR NZ,ChangeMatchingColourBits_1 | |||
| 6F1A | LD A,(IX+$00) | |||
| 6F1D | AND H | |||
| 6F1E | OR L | |||
| 6F1F | LD (IX+$00),A | |||
| ChangeMatchingColourBits_1 | 6F22 | INC IX | ||
| 6F24 | DEC DE | |||
| 6F25 | LD A,D | |||
| 6F26 | OR E | |||
| 6F27 | JR NZ,ChangeMatchingColourBits_0 | |||
| 6F29 | POP IX | |||
| 6F2B | RET | |||
| Prev: 6EEF | Up: Map | Next: 6F2C |