Routines |
Prev: 59116 | Up: Map | Next: 59201 |
Used by the routine at 63489.
|
||||
59155 | LD HL,58003 | HL=Table_Tiles. | ||
59158 | LD A,(55334) | Jump to 59172 if *55334 is not equal to 0. | ||
59161 | CP 0 | |||
59163 | JP NZ,59172 | |||
59166 | LD A,0 | Write 0 to *Item_ID. | ||
59168 | LD (58055),A | |||
59171 | RET | Return. | ||
59172 | LD A,(HL) | A=*HL. | ||
59173 | PUSH HL | DE=HL (using the stack). | ||
59174 | POP DE | |||
59175 | INC HL | Increment HL by one. | ||
59176 | LD (58055),A | Write A to *Item_ID. | ||
59179 | LD A,(55334) | A=*55334. | ||
59182 | DEC A | Decrease A by one. | ||
59183 | CP 0 | Jump to 59192 if A is not equal to 0. | ||
59185 | JP NZ,59192 | |||
59188 | LD C,1 | C=1. | ||
59190 | JR 59193 | Jump to 59193. | ||
59192 | LD C,A | C=A. | ||
59193 | LD B,0 | B=0. | ||
59195 | LDIR | LDIR. | ||
59197 | LD (55334),A | Write A to *55334. | ||
59200 | RET | Return. |
Prev: 59116 | Up: Map | Next: 59201 |