Prev: B5CE Up: Map Next: B729
B71B: Calculate vischar isometric position (from vischar)
This calculates the isometric screen position for the specified vischar from vischar.mi.pos.
Input
HL Pointer to visible 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