Routines |
Prev: B5CE | Up: Map | Next: B729 |
This calculates the isometric screen position for the specified vischar from vischar.mi.pos.
Used by the routines at enter_room, setup_movable_item, hero_sit_sleep_common, reset_outdoors and spawn_character.
|
||||||||
calc_vischar_iso_pos_from_vischar | B71B | PUSH HL | Preserve vischar pointer | |||||
Save a copy of the vischar's position to global saved_pos.
|
||||||||
B71C | LD A,$0F | Point HL at vischar.mi.pos | ||||||
B71E | ADD A,L | |||||||
B71F | LD L,A | |||||||
B720 | LD DE,$81A4 | Point DE at saved_pos | ||||||
B723 | LD BC,$0006 | Six bytes | ||||||
B726 | LDIR | Block copy | ||||||
B728 | POP HL | Restore vischar pointer | ||||||
Now FALL THROUGH into calc_vischar_iso_pos_from_state which will read from saved_pos.
|
Prev: B5CE | Up: Map | Next: B729 |