![]() |
Routines |
| Prev: 63146 | Up: Map | Next: 63201 |
|
Writes one tile and its attribute into the room buffers.
|
||||
| Write_Tile | 63174 | PUSH AF | Stash the tile, DE and HL on the stack. | |
| 63175 | PUSH DE | |||
| 63176 | PUSH HL | |||
| 63177 | LD HL,(25618) | Increase *Print_BufferOffset by one. | ||
| 63180 | INC HL | |||
| 63181 | LD (25618),HL | |||
| 63184 | LD DE,24013 | Point HL at that Buffer_RoomTiles cell. | ||
| 63187 | ADD HL,DE | |||
| 63188 | LD (HL),A | |||
| 63189 | LD DE,800 | Point HL at the matching Buffer_RoomAttributes cell. | ||
| 63192 | ADD HL,DE | |||
| 63193 | LD A,(23695) | Write *ATTR_T there. | ||
| 63196 | LD (HL),A | |||
| 63197 | POP HL | Restore the stashed registers from the stack. | ||
| 63198 | POP DE | |||
| 63199 | POP AF | |||
| 63200 | RET | Return. | ||
| Prev: 63146 | Up: Map | Next: 63201 |