![]() |
Routines |
Prev: 43118 | Up: Map | Next: 43183 |
|
||||||||
PopulateRoomBuffer | 43155 | PUSH AF | Stash AF, DE and HL on the stack. | |||||
43156 | PUSH DE | |||||||
43157 | PUSH HL | |||||||
Update *BufferPointer by one.
|
||||||||
43158 | LD HL,(47829) | HL=*BufferPointer. | ||||||
43161 | INC HL | Increment HL by one. | ||||||
43162 | LD (47829),HL | Write HL to *BufferPointer. | ||||||
...but using the initial value of *BufferPointer...
|
||||||||
43165 | DEC HL | Decrease HL by one. | ||||||
43166 | LD DE,41412 | HL+=BufferRoom. | ||||||
43169 | ADD HL,DE | |||||||
43170 | LD (HL),A | Write A to *HL. | ||||||
Move to the room attribute buffer.
|
||||||||
43171 | LD DE,800 | HL+=800 (the length of the room buffer). | ||||||
43174 | ADD HL,DE | |||||||
43175 | LD A,(23695) | Write *ATTR_T to *HL. | ||||||
43178 | LD (HL),A | |||||||
Housekeeping; restore all registers and return.
|
||||||||
43179 | POP HL | Restore HL, DE and AF from the stack. | ||||||
43180 | POP DE | |||||||
43181 | POP AF | |||||||
43182 | RET | Return. |
Prev: 43118 | Up: Map | Next: 43183 |