Prev: B579 Up: Map Next: B594
B583: Print C rows of sprite chars at PRINT AT D,E (push/pop HL)
Saves HL, emits PRINT AT D,E, restores HL, calls door_print_chars (print H chars
of value L). INC D, DEC C, loops. Used by door_open and door_close to draw
each row of the door sprite.
Input
C Number of rows
D Starting row (PRINT AT row)
E Starting column (PRINT AT col)
HL Sprite data (H=char, L=char count per row)
door_print_sprite_row B583 PUSH HL
B584 LD A,$16
B586 RST $10
B587 LD A,D
B588 RST $10
B589 LD A,E
B58A RST $10
B58B POP HL
B58C CALL door_print_chars
B58F INC D
B590 DEC C
B591 JR NZ,door_print_sprite_row
B593 RET
Prev: B579 Up: Map Next: B594