Routines |
Prev: 47034 | Up: Map | Next: 47147 |
Used by the routine at 61815.
|
||||
47097 | PUSH AF | Stash AF, HL, BC and DE on the stack. | ||
47098 | PUSH HL | |||
47099 | PUSH BC | |||
47100 | PUSH DE | |||
47101 | EX DE,HL | Switch the DE and HL registers. | ||
47102 | PUSH HL | Stash HL on the stack. | ||
47103 | LD D,253 | D=253. | ||
47105 | LD E,L | E=L. | ||
47106 | LD L,H | L=H. | ||
47107 | LD H,0 | H=0. | ||
47109 | ADD HL,HL | HL*=(32)+DE. | ||
47110 | ADD HL,HL | |||
47111 | ADD HL,HL | |||
47112 | ADD HL,HL | |||
47113 | ADD HL,HL | |||
47114 | ADD HL,DE | |||
47115 | LD (HL),C | Write C to *HL. | ||
47116 | POP HL | Restore HL from the stack. | ||
47117 | LD DE,21248 | HL+=21248. | ||
47120 | ADD HL,DE | |||
47121 | EX DE,HL | Switch the DE and HL registers. | ||
47122 | LD L,A | Create an offset in HL. | ||
47123 | LD H,0 | |||
47125 | ADD HL,HL | HL*=8. | ||
47126 | ADD HL,HL | |||
47127 | ADD HL,HL | |||
47128 | LD BC,(47081) | HL+=*47081. | ||
47132 | ADD HL,BC | |||
47133 | LDI | Write *HL to *DE, increment both DE and HL by one, and decrease BC by one. | ||
47135 | DEC E | Decrease B by one. | ||
47136 | LD A,E | E+=32. | ||
47137 | ADD A,32 | |||
47139 | LD E,A | |||
47140 | JR NC,47133 | |||
47142 | POP DE | Restore DE, BC, HL and AF from the stack. | ||
47143 | POP BC | |||
47144 | POP HL | |||
47145 | POP AF | |||
47146 | RET | Return. |
Prev: 47034 | Up: Map | Next: 47147 |