![]() |
Routines |
| Prev: E2C8 | Up: Map | Next: E2DA |
|
Used by the routine at Handler_CursorMovement.
|
||||
| FetchTileObject | E2CA | LD HL,$D834 | Fetch *PlayerCursor_TileID and create an offset using the current tile ID. | |
| E2CD | LD A,(HL) | |||
| E2CE | LD HL,$E260 | |||
| E2D1 | LD B,$00 | |||
| E2D3 | LD C,A | |||
|
Note; the tile IDs are numbered starting from 01 so the routine is fetching from E260+01=E261 (InGame_Tiles_Top).
|
||||
| E2D4 | ADD HL,BC | Add the offset to E260 and fetch the item which is at the currently referenced tile ID location. | ||
| E2D5 | LD A,(HL) | |||
| E2D6 | CALL $DFB2 | Call DFB2. | ||
| E2D9 | RET | Return. | ||
| Prev: E2C8 | Up: Map | Next: E2DA |