Routines |
Prev: E9BF | Up: Map | Next: E9D5 |
Used by the routines at 621E, 634C, 64BD, 71DD, 790D, 79E4, 7AF4, 7BB6, EB85, EBBB, EC5A, F338, F375, F731, F846, F9D2, FA05, FA83, FADA and FAE3. Updates the screen refresh buffer (SRB) for a character's current animatory state and location. Returns with the character's current coordinates in DE and animatory state in A.
|
||||||||
E9C8 | LD L,$02 | Point HL at byte 0x02 of the character's buffer | ||||||
E9CA | LD D,(HL) | D=character's y-coordinate | ||||||
E9CB | DEC L | L=0x01 | ||||||
E9CC | LD E,(HL) | E=character's x-coordinate | ||||||
E9CD | DEC L | L=0x00 | ||||||
E9CE | PUSH DE | Save the character's coordinates briefly | ||||||
E9CF | CALL $E9DC | Set the appropriate bits in the SRB for the character's current animatory state and location | ||||||
E9D2 | POP DE | Restore the character's coordinates to DE | ||||||
E9D3 | LD A,(HL) | A=character's animatory state | ||||||
E9D4 | RET |
Prev: E9BF | Up: Map | Next: E9D5 |