Prev: F311 Up: Map Next: F3B7
F39E: Clear a player record for a new game
Used by the routine at new_game.
Zeroes the first 28 bytes of the record (score, flags, lives, add-ons, level), sets the rocket part carried (+26) to $FF (none), and copies the starting restart position from start_position into +19 to +24. The rest of the record (the control method at +28, and the table of the level's objects from +29) is set by new_game.
Input
HL the record (messages_and_players + 25 for player 1, + 130 for player 2)
clear_player_record F39E LD B,$1C Zero +0 to +27
F3A0 PUSH HL
F3A1 CALL clear_bytes
F3A4 DEC HL +26: no rocket part carried
F3A5 DEC HL
F3A6 LD (HL),$FF
F3A8 POP HL +19 to +24: the restart position at the start of the game
F3A9 LD A,$13
F3AB CALL add_a_to_hl
F3AE LD DE,start_position
F3B1 LD C,$06
F3B3 EX DE,HL
F3B4 LDIR
F3B6 RET
Prev: F311 Up: Map Next: F3B7