Routines |
Prev: 919E | Up: Map | Next: 91E2 |
91BB | LD H,(IX+$03) | H=IX+03. | ||
91BE | LD L,(IX+$02) | L=IX+02. | ||
91C1 | LD A,H | A=H. | ||
91C2 | AND %00011111 | Keep only bits 0-4. | ||
91C4 | LD H,A | H=A. | ||
91C5 | SRA H | |||
91C7 | RR L | |||
91C9 | SRA H | |||
91CB | RR L | |||
91CD | SRA H | |||
91CF | RR L | |||
91D1 | PUSH HL | Stash HL on the stack. | ||
91D2 | LD BC,$7000 | BC=TerrainData_Active. | ||
91D5 | ADD HL,BC | HL+=BC. | ||
91D6 | LD D,(HL) | |||
91D7 | POP HL | |||
91D8 | PUSH HL | |||
91D9 | INC HL | Increment HL by one. | ||
91DA | LD A,H | A=H. | ||
91DB | AND %00000011 | Keep only bits 0-1. | ||
91DD | LD H,A | H=A. | ||
91DE | ADD HL,BC | HL+=BC. | ||
91DF | LD E,(HL) | E=HL. | ||
91E0 | POP HL | Restore HL from the stack. | ||
91E1 | RET | Return. |
Prev: 919E | Up: Map | Next: 91E2 |