Routines |
Prev: 6212 | Up: Map | Next: 6226 |
Used by many routines. 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.
|
||||||||
6214 | LD L,$60 | Point HL at byte 0x60 of the character's buffer | ||||||
6216 | LD B,(HL) | B=character's animatory state | ||||||
6217 | INC L | L=0x61 | ||||||
6218 | LD D,(HL) | D=character's y-coordinate (154-169) | ||||||
6219 | INC L | L=0x62 | ||||||
621A | LD E,(HL) | E=character's x-coordinate (0-95) | ||||||
621B | CALL $61B8 | Update the SRB | ||||||
621E | LD L,$60 | Point HL at byte 0x60 of the character's buffer | ||||||
6220 | LD A,(HL) | A=character's animatory state | ||||||
6221 | INC L | L=0x61 | ||||||
6222 | LD D,(HL) | D=character's y-coordinate (155-169) | ||||||
6223 | INC L | L=0x62 | ||||||
6224 | LD E,(HL) | E=character's x-coordinate (0-95) | ||||||
6225 | RET |
Prev: 6212 | Up: Map | Next: 6226 |