Routines |
Prev: 42155 | Up: Map | Next: 42245 |
42196 | LD B,3 | B=3. | ||
42198 | PUSH BC | Stash BC, HL and DE on the stack. | ||
42199 | PUSH HL | |||
42200 | PUSH DE | |||
42201 | LD A,D | A=D. | ||
42202 | CP 0 | Jump to 42213 if A is less than 0. | ||
42204 | JR C,42213 | |||
42206 | CP 24 | Jump to 42213 if A is greater than or equal to 24. | ||
42208 | JR NC,42213 | |||
42210 | CALL 42224 | Call 42224. | ||
42213 | POP DE | Restore DE and HL from the stack. | ||
42214 | POP HL | |||
42215 | LD BC,24 | HL+=0024. | ||
42218 | ADD HL,BC | |||
42219 | INC D | Increment D by one. | ||
42220 | POP BC | Restore BC from the stack. | ||
42221 | DJNZ 42198 | Decrease counter by one and loop back to 42198 until counter is zero. | ||
42223 | RET | Return. | ||
42224 | PUSH HL | Stash HL on the stack. | ||
42225 | CALL CalculateDartBoardAddress | Call CalculateDartBoardAddress. | ||
42228 | EX DE,HL | Exchange the DE and HL registers. | ||
42229 | POP HL | Restore HL from the stack. | ||
42230 | LD B,8 | B=8. | ||
42232 | PUSH BC | Stash BC and DE on the stack. | ||
42233 | PUSH DE | |||
42234 | LD BC,3 | BC=0003. | ||
42237 | LDIR | LDIR. | ||
42239 | POP DE | Restore DE from the stack. | ||
42240 | INC D | Increment D by one. | ||
42241 | POP BC | Restore BC from the stack. | ||
42242 | DJNZ 42232 | Decrease counter by one and loop back to 42232 until counter is zero. | ||
42244 | RET | Return. |
Prev: 42155 | Up: Map | Next: 42245 |