Routines |
Prev: F249 | Up: Map | Next: F286 |
Used by the routine at F43E.
|
||||
F255 | LD A,B | Jump to F262 if B is equal to 00. | ||
F256 | CP $00 | |||
F258 | JR Z,$F262 | |||
F25A | CP $40 | Jump to F262 if B is equal to 40. | ||
F25C | JR Z,$F262 | |||
F25E | CP $20 | Jump to F266 if B is not equal to 20. | ||
F260 | JR NZ,$F266 | |||
F262 | POP HL | Restore HL from the stack. | ||
F263 | JP $E352 | Jump to E352. | ||
F266 | AND %00000111 | Keep only bits 0-2. | ||
F268 | RLCA | RLCA. | ||
F269 | RLCA | |||
F26A | BIT 7,B | Jump to F276 if bit 7 of B is not set. | ||
F26C | JR Z,$F276 | |||
F26E | INC A | Increment A by one. | ||
F26F | PUSH HL | Stash HL on the stack. | ||
F270 | LD HL,$D839 | Set bit 0 of *D839. | ||
F273 | SET 0,(HL) | |||
F275 | POP HL | Restore HL from the stack. | ||
F276 | LD ($E761),A | Write A to *Tile_SpacesToMove. | ||
F279 | LD A,($D82C) | Write *DestinationCursor_Y_Position to *Tile_Horizontal_Position. | ||
F27C | LD ($E75D),A | |||
F27F | LD A,($D82D) | Write *DestinationCursor_X_Position to *Tile_Vertical_Position. | ||
F282 | LD ($E75E),A | |||
F285 | RET | Return. |
Prev: F249 | Up: Map | Next: F286 |