![]() |
Routines |
| Prev: 36203 | Up: Map | Next: 36307 |
|
Used by the routine at 36203. On entry, A holds a room layout byte, rotated such that the bit-pair corresponding to the tile of interest is in bits 0 and 1.
|
||||||||||
| 36288 | AND 3 | Keep only bits 0 and 1; A=0 (background), 1 (floor), 2 (wall) or 3 (nasty) | ||||||||
| 36290 | LD C,A | Multiply by 9 and add 160; now A=160 (background), 169 (floor), 178 (wall) or 187 (nasty) | ||||||||
| 36291 | RLCA | |||||||||
| 36292 | RLCA | |||||||||
| 36293 | RLCA | |||||||||
| 36294 | ADD A,C | |||||||||
| 36295 | ADD A,160 | |||||||||
| 36297 | LD E,A | Point DE at the attribute byte for the background, floor, wall or nasty tile (see 32928) | ||||||||
| 36298 | LD D,128 | |||||||||
| 36300 | LD A,(DE) | Copy the attribute byte into the buffer at 24064 | ||||||||
| 36301 | LD (IX+0),A | |||||||||
| 36304 | INC IX | Move IX along to the next byte in the attribute buffer | ||||||||
| 36306 | RET | |||||||||
| Prev: 36203 | Up: Map | Next: 36307 |