Prev: A73A Up: Map Next: A7A5
A774: Routine at A774
Used by the routine at 9D42.
A774 PUSH BC Stash BC, HL and DE on the stack.
A775 PUSH HL
A776 PUSH DE
A777 LD A,D A=D.
A778 CP $00 Compare A with 00.
A77A JR C,$A783 Jump to A783 if A is less than 00.
A77C CP $18 Compare A with 18.
A77E JR NC,$A783 Jump to A783 if A is greater than or equal to 18.
A780 CALL $A78E Call A78E.
A783 POP DE Restore DE and HL from the stack.
A784 POP HL
A785 LD BC,$0018 BC=0018.
A788 ADD HL,BC HL+=BC.
A789 INC D Increment D by one.
A78A POP BC Restore BC from the stack.
A78B DJNZ $A774 Decrease counter by one and loop back to A774 until counter is zero.
A78D RET Return.
A78E PUSH HL Stash HL on the stack.
A78F CALL CalculateDartBoardAddress Call CalculateDartBoardAddress.
A792 EX DE,HL Exchange the DE and HL registers.
A793 POP HL Restore HL from the stack.
A794 DEC E Decrease E by one.
A795 LD B,$08 B=08.
A797 PUSH BC Stash BC and DE on the stack.
A798 PUSH DE
A799 LDI LDI.
A79B LDI LDI.
A79D LDI LDI.
A79F POP DE Restore DE from the stack.
A7A0 INC D Increment D by one.
A7A1 POP BC Restore BC from the stack.
A7A2 DJNZ $A797 Decrease counter by one and loop back to A797 until counter is zero.
A7A4 RET Return.
Prev: A73A Up: Map Next: A7A5