Prev: 57164 Up: Map Next: 57290
57207: DRAW_PLAYER
Used by the routines PLAY_GAME and L57290.
DRAW_PLAYER 57207 LD A,(59648)
57210 CP 32
57212 RET NC
57213 AND A
57214 JP Z,DRAW_PLAYER_0
57217 LD A,(59674)
57220 RRA
57221 RET C
DRAW_PLAYER_0 57222 LD HL,(59649) Load HL with PLAYER_X_COORD and PLAYER_Y_COORD
57225 SRL H
57227 RR L
57229 RLA
57230 LD DE,60387 Point DE at SCREEN_BUFFER
57233 ADD HL,DE
57234 PUSH HL
57235 LD HL,52334 Prepare to copy from left-aligned player ship graphics data
57238 RRA
57239 JP NC,DRAW_PLAYER_1
57242 LD HL,52398 Prepare to copy from right-aligned player ship graphics data
DRAW_PLAYER_1 57245 LD A,(59674)
57248 RRA
57249 JP C,DRAW_PLAYER_2
57252 LD DE,32
57255 ADD HL,DE
DRAW_PLAYER_2 57256 EX DE,HL
57257 POP HL
57258 LD BC,29
57261 LD A,8
DRAW_PLAYER_3 57263 PUSH AF
57264 LD A,(DE)
57265 XOR (HL)
57266 LD (HL),A
57267 INC HL
57268 INC DE
57269 LD A,(DE)
57270 XOR (HL)
57271 LD (HL),A
57272 INC HL
57273 INC DE
57274 LD A,(DE)
57275 XOR (HL)
57276 LD (HL),A
57277 INC HL
57278 INC DE
57279 LD A,(DE)
57280 XOR (HL)
57281 LD (HL),A
57282 INC DE
57283 ADD HL,BC
57284 POP AF
57285 DEC A
57286 JP NZ,DRAW_PLAYER_3
57289 RET
Prev: 57164 Up: Map Next: 57290