Routines |
Prev: 59407 | Up: Map | Next: 60161 |
Used by the routine at GameLoop.
|
||||
60095 | LD A,(IY+15) | A=*IY+15. | ||
60098 | LD (47441),A | Write A to TempStore_Room. | ||
60101 | LD HL,59407 | HL=59407. | ||
60104 | CALL FindDataById | Call FindDataById. | ||
This entry point is used by the routines at 60309, 60356, 60386, 60397, 60414, 60459, 60468 and 60851.
|
||||
60107 | LD A,(HL) | A=*HL. | ||
60108 | INC HL | Increment HL by one. | ||
60109 | CP 255 | If A is 255 (the terminator) then return. | ||
60111 | RET Z | |||
60112 | CP 247 | If A is 247 jump to 60139. | ||
60114 | JR Z,60139 | |||
60116 | ADD A,A | A*=2. | ||
60117 | LD E,A | Create an offset in DE. | ||
60118 | LD D,0 | |||
60120 | PUSH HL | Stash HL on the stack. | ||
60121 | LD HL,59369 | HL=59369+DE. | ||
60124 | ADD HL,DE | |||
60125 | LD E,(HL) | E=*HL. | ||
60126 | INC HL | Increment HL by one. | ||
60127 | LD D,(HL) | D=*HL. | ||
60128 | POP HL | Restore HL from the stack. | ||
60129 | PUSH DE | Stash DE on the stack. | ||
60130 | RET | Return. | ||
60131 | LD A,(HL) | A=*HL. | ||
60132 | INC HL | Increment HL by one. | ||
60133 | CP 246 | If A is 246 jump to 60107. | ||
60135 | JR Z,60107 | |||
60137 | JR 60131 | Jump to 60131. | ||
60139 | LD A,(HL) | A=*HL. | ||
60140 | INC HL | Increment HL by one. | ||
60141 | CP 246 | If A is 246 jump to 60107. | ||
60143 | JP Z,60107 | |||
60146 | ADD A,A | A*=2. | ||
60147 | LD E,A | Create an offset in DE. | ||
60148 | LD D,0 | |||
60150 | PUSH HL | Stash HL on the stack. | ||
60151 | LD HL,59385 | HL=59385+DE. | ||
60154 | ADD HL,DE | |||
60155 | LD E,(HL) | E=*HL. | ||
60156 | INC HL | Increment HL by one. | ||
60157 | LD D,(HL) | D=*HL. | ||
60158 | POP HL | Restore HL from the stack. | ||
60159 | PUSH DE | Stash DE on the stack. | ||
60160 | RET | Return. |
Prev: 59407 | Up: Map | Next: 60161 |