Prev: B761 Up: Map Next: B7A0
B77A: Routine at B77A
Used by the routine at 9D42.
B77A LD DE,($9AC3) DE=*9AC3.
B77E LD B,$08 B=08.
B780 LD A,D Jump to B79C if D is less than 00.
B781 CP $00
B783 JR C,$B79C
B785 CP $18 Jump to B79C if D is greater than or equal to 18.
B787 JR NC,$B79C
B789 PUSH BC Stash BC, DE and DE on the stack.
B78A PUSH DE
B78B PUSH DE
B78C LD A,E A=E.
B78D EX AF,AF' Exchange the AF register with the shadow AF register.
B78E CALL CalculateScreenBuffer Call CalculateScreenBuffer.
B791 POP DE Restore DE from the stack.
B792 PUSH HL Stash HL on the stack.
B793 CALL CalculateDartBoardAddress Call CalculateDartBoardAddress.
B796 POP DE Restore DE from the stack.
B797 CALL $B7A0 Call B7A0.
B79A POP DE Restore DE and BC from the stack.
B79B POP BC
B79C INC D Increment D by one.
B79D DJNZ $B780 Decrease counter by one and loop back to B780 until counter is zero.
B79F RET Return.
Prev: B761 Up: Map Next: B7A0